fixing the app context issue. we will create an app if no current_app available
This commit is contained in:
@ -32,9 +32,8 @@ if current_app:
|
||||
else:
|
||||
flask_app = create_app()
|
||||
|
||||
red = RedisHandler(host=current_app.config.get('REDIS_HOST', 'localhost'),
|
||||
port=current_app.config.get('REDIS_PORT', 6379),
|
||||
db=current_app.config.get('REDIS_DB', 0)).redis()
|
||||
red = RedisHandler().redis()
|
||||
|
||||
|
||||
def make_celery(app):
|
||||
celery = Celery(
|
||||
|
Reference in New Issue
Block a user