diff --git a/dvadmin3_celery/settings.py b/dvadmin3_celery/settings.py index 2db2847df1dadd892e461991388040f4ac84cdb8..4c0de1a4931848bab6b0b22bb3ad1e43072ce354 100644 --- a/dvadmin3_celery/settings.py +++ b/dvadmin3_celery/settings.py @@ -43,6 +43,9 @@ if not hasattr(settings, 'BROKER_URL'): if not hasattr(settings, 'CELERY_RESULT_BACKEND'): settings.CELERY_RESULT_BACKEND = 'django-db' +if not hasattr(settings, 'CELERY_RESULT_EXTENDED'): + settings.CELERY_RESULT_EXTENDED = True + # ********** Backend数据库 ********** if not hasattr(settings, 'CELERYBEAT_SCHEDULER'): settings.CELERYBEAT_SCHEDULER = 'django_celery_beat.schedulers.DatabaseScheduler'