implement a simple periodic pod reaper for container groups

see: https://github.com/ansible/awx/issues/4911
This commit is contained in:
Ryan Petrello
2019-10-17 16:51:30 -04:00
parent 0bcd1db239
commit 16812542f8
3 changed files with 51 additions and 1 deletions

View File

@@ -479,6 +479,11 @@ CELERYBEAT_SCHEDULE = {
'schedule': timedelta(seconds=20),
'options': {'expires': 20}
},
'k8s_reaper': {
'task': 'awx.main.tasks.awx_k8s_reaper',
'schedule': timedelta(seconds=60),
'options': {'expires': 50,}
},
# 'isolated_heartbeat': set up at the end of production.py and development.py
}
AWX_INCONSISTENT_TASK_INTERVAL = 60 * 3