mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-24 03:21:51 -05:00
Merge pull request #3436 from alphagov/stop-restart-reporting-180693991
Stop killing reporting processes after each task
This commit is contained in:
@@ -344,10 +344,6 @@ class Config(object):
|
||||
if os.getenv('CELERYD_PREFETCH_MULTIPLIER'):
|
||||
CELERY['worker_prefetch_multiplier'] = os.getenv('CELERYD_PREFETCH_MULTIPLIER')
|
||||
|
||||
# on reporting worker, restart workers after each task is executed to help prevent memory leaks
|
||||
if os.getenv('CELERYD_MAX_TASKS_PER_CHILD'):
|
||||
CELERY['worker_max_tasks_per_child'] = int(os.getenv('CELERYD_MAX_TASKS_PER_CHILD'))
|
||||
|
||||
FROM_NUMBER = 'development'
|
||||
|
||||
STATSD_HOST = os.getenv('STATSD_HOST')
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
'notify-delivery-worker-periodic': {},
|
||||
'notify-delivery-worker-reporting': {
|
||||
'additional_env_vars': {
|
||||
'CELERYD_MAX_TASKS_PER_CHILD': 1,
|
||||
'CELERYD_PREFETCH_MULTIPLIER': 1,
|
||||
'SQLALCHEMY_STATEMENT_TIMEOUT': 7200
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user