mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 06:28:01 -03:30
Dont reap pods when settings.RECEPTOR_RELEASE_WORK = False
This commit is contained in:
parent
d834519aae
commit
e30b4ca875
@ -467,6 +467,9 @@ def cluster_node_heartbeat():
|
||||
|
||||
@task(queue=get_local_queuename)
|
||||
def awx_k8s_reaper():
|
||||
if not settings.RECEPTOR_RELEASE_WORK:
|
||||
return
|
||||
|
||||
from awx.main.scheduler.kubernetes import PodManager # prevent circular import
|
||||
|
||||
for group in InstanceGroup.objects.filter(is_container_group=True).iterator():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user