Skip to content

Commit 39e0c1f

Browse files
authored
Celery tasks now fail in eager mode (#824)
1 parent 282f0c7 commit 39e0c1f

File tree

1 file changed

+1
-0
lines changed
  • {{ cookiecutter.name }}/src/app/conf

1 file changed

+1
-0
lines changed

{{ cookiecutter.name }}/src/app/conf/celery.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
CELERY_BROKER_URL = env("CELERY_BROKER_URL", cast=str, default="redis://localhost:6379/0")
66
CELERY_TASK_ALWAYS_EAGER = env("CELERY_TASK_ALWAYS_EAGER", cast=bool, default=env("DEBUG"))
7+
CELERY_TASK_EAGER_PROPAGATES = True
78
CELERY_TIMEZONE = TIME_ZONE
89
CELERY_ENABLE_UTC = False
910
CELERY_TASK_ACKS_LATE = True

0 commit comments

Comments
 (0)