mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
Actually cancel things
This commit is contained in:
committed by
Shane McDonald
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user