dynamically set worker autoscale max_concurrency based on system memory

This commit is contained in:
Ryan Petrello
2018-03-20 16:17:21 -04:00
parent 8056ac5393
commit 6a96e6a268
2 changed files with 28 additions and 0 deletions

View File

@@ -458,6 +458,7 @@ CELERY_TRACK_STARTED = True
CELERYD_TASK_TIME_LIMIT = None
CELERYD_TASK_SOFT_TIME_LIMIT = None
CELERYD_POOL_RESTARTS = True
CELERYD_AUTOSCALER = 'awx.main.utils.autoscale:DynamicAutoScaler'
CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend'
CELERY_IMPORTS = ('awx.main.scheduler.tasks',)
CELERY_QUEUES = (