How to properly configure djcelery results backend to database

后端 未结 3 1481
萌比男神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条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-02 02:45

    Related question with right answer is here.

    You should actually run

    python manage.py celery worker -E
    

    and

    python manage.py celerycam
    

    After that tasks results will be displayed in admin (Djcelery › Tasks)

提交回复
热议问题