celery 2小时结果留存

This commit is contained in:
2026-07-11 13:16:21 +08:00
parent 344fb789a4
commit a7cd5a634c
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -77,6 +77,8 @@ if broker_url:
task_serializer="json",
accept_content=["json"],
result_serializer="json",
result_expires=max(60, int(settings.CELERY_RESULT_EXPIRES_SECONDS or 7200)),
task_store_errors_even_if_ignored=True,
timezone="Asia/Shanghai",
enable_utc=True,
task_soft_time_limit=600,