mirror of https://github.com/pallets/flask.git
Merge branch 'AndrewBMartin-patch-1'
This commit is contained in:
commit
7a999cd4b8
|
|
@ -36,7 +36,8 @@ This is all that is necessary to properly integrate Celery with Flask::
|
|||
from celery import Celery
|
||||
|
||||
def make_celery(app):
|
||||
celery = Celery(app.import_name, broker=app.config['CELERY_BROKER_URL'])
|
||||
celery = Celery(app.import_name, backend=app.config['CELERY_BACKEND'],
|
||||
broker=app.config['CELERY_BROKER_URL'])
|
||||
celery.conf.update(app.config)
|
||||
TaskBase = celery.Task
|
||||
class ContextTask(TaskBase):
|
||||
|
|
|
|||
Loading…
Reference in New Issue