kill workers after 20 tasks

This commit is contained in:
Kenneth Kehl
2024-11-12 09:41:20 -08:00
parent 1d5e54e2b7
commit bb435e33ac

View File

@@ -166,6 +166,7 @@ class Config(object):
current_minute = (datetime.now().minute + 1) % 60
CELERY = {
"worker_max_tasks_per_child": 20,
"broker_url": REDIS_URL,
"broker_transport_options": {
"visibility_timeout": 310,