Skip to content

Commit 6a751a0

Browse files
committed
Setup soft shutdown timeout, as default is 0 which disables soft/warm shutdown
1 parent a2ecdb4 commit 6a751a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ services:
229229
# time after which a SIGKILL is sent to celery after a SIGTERM (warm shutdown), default 10s
230230
# insufficient short grace period causes issues on batch when tasks are killed during the hourly worker restart
231231
stop_grace_period: 10m
232+
stop_signal: SIGTERM
232233

233234
depends_on:
234235
db-migrate:
@@ -273,6 +274,7 @@ services:
273274
- DB_PASSWORD=password
274275
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
275276
- CELERY_RESULT_BACKEND=redis://redis:6379/0
277+
- CELERY_WORKER_SOFT_SHUTDOWN_TIMEOUT=300
276278
- CACHE_LOCATION=redis://redis:6379/0
277279
- DJANGO_SETTINGS_MODULE=internetnl.settings
278280
- STATSD_HOST=statsd

0 commit comments

Comments
 (0)