mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
In admin reaper skip work units w/o params
This commit is contained in:
parent
ecb84e090c
commit
329caad681
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user