From e30b4ca8753ff13c90789ede6383b16a5a11022d Mon Sep 17 00:00:00 2001 From: Shane McDonald Date: Mon, 19 Apr 2021 09:06:23 -0400 Subject: [PATCH] Dont reap pods when settings.RECEPTOR_RELEASE_WORK = False --- awx/main/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index f6474e41da..7c0dd854d0 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -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():