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
# Each worker should only fetch one message at a time
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')
LANGUAGES = (
("en", "English"),
......@@ -212,4 +216,4 @@ LOGO_IMAGE_URL = os.getenv('LOGO_IMAGE_URL', "{}/static/images/edx-theme/edx-log
DEAD_MANS_SNITCH_URL = os.getenv('DEAD_MANS_SNITCH_URL', '')
SECRET_KEY = os.getenv('SECRET_KEY', 'secret_key')
\ No newline at end of file
SECRET_KEY = os.getenv('SECRET_KEY', 'secret_key')
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