mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 04:47:44 -02:30
Merge pull request #2825 from ryanpetrello/dont-fear-the-reaper
don't reap jobs that aren't running Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -11,6 +11,9 @@ logger = logging.getLogger('awx.main.dispatch')
|
|||||||
|
|
||||||
|
|
||||||
def reap_job(j, status):
|
def reap_job(j, status):
|
||||||
|
if UnifiedJob.objects.get(id=j.id).status not in ('running', 'waiting'):
|
||||||
|
# just in case, don't reap jobs that aren't running
|
||||||
|
return
|
||||||
j.status = status
|
j.status = status
|
||||||
j.start_args = '' # blank field to remove encrypted passwords
|
j.start_args = '' # blank field to remove encrypted passwords
|
||||||
j.job_explanation += ' '.join((
|
j.job_explanation += ' '.join((
|
||||||
|
|||||||
Reference in New Issue
Block a user