Commit b5c4bb07 by Alex Dusenbery

EDUCATOR-2359 | Add celery config to restart worker after 100 tasks.

parent d9362ee2
...@@ -192,6 +192,10 @@ BROKER_HEARTBEAT_CHECKRATE = 2 ...@@ -192,6 +192,10 @@ BROKER_HEARTBEAT_CHECKRATE = 2
# Each worker should only fetch one message at a time # Each worker should only fetch one message at a time
CELERYD_PREFETCH_MULTIPLIER = 1 CELERYD_PREFETCH_MULTIPLIER = 1
# Maximum number of tasks a pool worker process can execute
# before it's replaced with a new one.
CELERYD_MAX_TASKS_PER_CHILD = 100
LANGUAGE_CODE = os.getenv('NOTIFIER_LANGUAGE', 'en') LANGUAGE_CODE = os.getenv('NOTIFIER_LANGUAGE', 'en')
LANGUAGES = ( LANGUAGES = (
("en", "English"), ("en", "English"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment