Skip to content

Commit 1ca5732

Browse files
committed
Add CELERY_WORKER_MAX_TASKS_PER_CHILD.
1 parent bda3236 commit 1ca5732

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

hypha/settings/base.py

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

505505
CELERY_BROKER_URL = env.str("CELERY_BROKER_URL", None)
506506
CELERY_RESULT_BACKEND = env.str("CELERY_RESULT_BACKEND", None)
507+
CELERY_WORKER_MAX_TASKS_PER_CHILD = env.int("CELERY_WORKER_MAX_TASKS_PER_CHILD", 1000)
507508

508509
# Logic is somewhat Heroku specific as Heroku's Key-Value Store addon auto sets the REDIS_URL env var.
509510
# If `CELERY_BROKER_URL` or `CELERY_RESULT_BACKEND` is set, it will ignore `REDIS_URL`

0 commit comments

Comments
 (0)