We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d1abfa commit 8cb6a04Copy full SHA for 8cb6a04
src/openklant/conf/base.py
@@ -1,4 +1,5 @@
1
from open_api_framework.conf.base import * # noqa
2
+from open_api_framework.conf.utils import config # noqa
3
4
from .api import * # noqa
5
@@ -50,3 +51,13 @@
50
51
"openklant.setup_configuration.steps.TokenAuthConfigurationStep",
52
"mozilla_django_oidc_db.setup_configuration.steps.AdminOIDCConfigurationStep",
53
)
54
+
55
+#
56
+# Celery
57
58
59
+# Add (by default) 5 (soft), 15 (hard) minute timeouts to all Celery tasks.
60
+CELERY_TASK_TIME_LIMIT = config("CELERY_TASK_HARD_TIME_LIMIT", default=15 * 60) # hard
61
+CELERY_TASK_SOFT_TIME_LIMIT = config(
62
+ "CELERY_TASK_SOFT_TIME_LIMIT", default=5 * 60
63
+) # soft
0 commit comments