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():