mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
Actually cancel things
This commit is contained in:
parent
0184a7c267
commit
fd92ba0c0b
@ -1569,9 +1569,11 @@ class BaseTask(object):
|
||||
|
||||
res = list(first_future.done)[0].result()
|
||||
if res.status == 'canceled':
|
||||
receptor_ctl.simple_command(f"work cancel {result['unitid']}")
|
||||
resultsock.shutdown(socket.SHUT_RDWR)
|
||||
resultfile.close()
|
||||
|
||||
receptor_ctl.simple_command(f"work release {result['unitid']}")
|
||||
status = res.status
|
||||
rc = res.rc
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user