From 016c7ba282f3f5dfd4a6e6c494b93c2993927c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Sat, 16 Jul 2022 17:33:31 +0800 Subject: [PATCH] =?UTF-8?q?django-celery-results=20=E7=89=88=E6=9C=AC2.4?= =?UTF-8?q?=20CELERY=5FRESULT=5FEXTENDED=20=3D=20True?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- requirements.txt | 2 +- server/settings.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 61a38043..8ba8f73e 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ celery==5.2.3 Django==3.2.12 django-celery-beat==2.3.0 -django-celery-results==2.3.1 +django-celery-results==2.4.0 django-cors-headers==3.11.0 django-filter==21.1 djangorestframework==3.13.1 diff --git a/server/settings.py b/server/settings.py index 50561221..2e1c614b 100755 --- a/server/settings.py +++ b/server/settings.py @@ -238,6 +238,7 @@ CELERY_BEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler' CELERY_ACCEPT_CONTENT = ['application/json'] CELERY_TASK_SERIALIZER = 'json' CELERY_RESULT_SERIALIZER = 'json' +CELERY_RESULT_EXTENDED = True CELERY_TASK_TRACK_STARTED = True CELERY_CACHE_BACKEND = 'default' CELERYD_SOFT_TIME_LIMIT = 60*10