Skip to content

Commit 0d648f1

Browse files
committed
fix celery
1 parent 26f432a commit 0d648f1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pythonkr_backend/pythonkr_backend/settings/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,5 @@
195195
#logfire.instrument_django()
196196

197197
# testing
198-
CELERY_ALWAYS_EAGER = True
198+
CELERY_TASK_ALWAYS_EAGER = True
199+
CELERY_TASK_EAGER_PROPAGATES = True

pythonkr_backend/pythonkr_backend/settings/prod.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@
7373
CELERY_BROKER_USERNAME = os.environ.get("CELERY_USERNAME","FALSE")
7474
CELERY_BROKER_VHOST = os.environ.get("CELERY_VHOST","FALSE")
7575
# Celery Configuration Options
76-
CELERY_ALWAYS_EAGER = False
76+
CELERY_TASK_ALWAYS_EAGER = False
77+
CELERY_TASK_EAGER_PROPAGATES = False
7778
CELERY_TIMEZONE = "Asia/Seoul"
7879
CELERY_TASK_TRACK_STARTED = True
7980
CELERY_BROKER_URL = f"amqp://{CELERY_BROKER_USERNAME}:{CELERY_BROKER_PASSWORD}@localhost:5672/{CELERY_BROKER_VHOST}"

0 commit comments

Comments
 (0)