From 329caad6818fe3c908ceede21234b356a08638e7 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Thu, 21 Oct 2021 15:38:03 -0400 Subject: [PATCH] In admin reaper skip work units w/o params --- awx/main/utils/receptor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/main/utils/receptor.py b/awx/main/utils/receptor.py index 19d76afd90..e1961ca905 100644 --- a/awx/main/utils/receptor.py +++ b/awx/main/utils/receptor.py @@ -86,6 +86,8 @@ def administrative_workunit_reaper(work_list=None): if (extra_data is None) or (extra_data.get('RemoteWorkType') != 'ansible-runner'): continue # if this is not ansible-runner work, we do not want to touch it params = extra_data.get('RemoteParams', {}).get('params') + if not params: + continue if not (params == '--worker-info' or params.startswith('cleanup')): continue # if this is not a cleanup or health check, we do not want to touch it if work_data.get('StateName') in RECEPTOR_ACTIVE_STATES: