mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Merge pull request #9942 from shanemcd/dont-reap-pods-when-debugging
Dont reap pods when settings.RECEPTOR_RELEASE_WORK = False Reviewed-by: Christian Adams <rooftopcellist@gmail.com>
This commit is contained in:
@@ -467,6 +467,9 @@ def cluster_node_heartbeat():
|
|||||||
|
|
||||||
@task(queue=get_local_queuename)
|
@task(queue=get_local_queuename)
|
||||||
def awx_k8s_reaper():
|
def awx_k8s_reaper():
|
||||||
|
if not settings.RECEPTOR_RELEASE_WORK:
|
||||||
|
return
|
||||||
|
|
||||||
from awx.main.scheduler.kubernetes import PodManager # prevent circular import
|
from awx.main.scheduler.kubernetes import PodManager # prevent circular import
|
||||||
|
|
||||||
for group in InstanceGroup.objects.filter(is_container_group=True).iterator():
|
for group in InstanceGroup.objects.filter(is_container_group=True).iterator():
|
||||||
|
|||||||
Reference in New Issue
Block a user