How to properly configure djcelery results backend to database

后端 未结 3 1518
萌比男神i
萌比男神i 2021-02-02 02:04

I\'m trying to setup djangocelery to store task results in the databse.

I set:

CELERY_RESULT_BACKEND = \'djcelery.backends.database.DatabaseBackend\'
         


        
3条回答
  •  Happy的楠姐
    2021-02-02 02:38

    Moving the config update e.g.
    app.conf.update(CELERY_RESULT_BACKEND='djcelery.backends.database.DatabaseBackend')

    to the end of file celery.py did the trick for me .

提交回复
热议问题