mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 10:57:36 -02: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()
|
res = list(first_future.done)[0].result()
|
||||||
if res.status == 'canceled':
|
if res.status == 'canceled':
|
||||||
|
receptor_ctl.simple_command(f"work cancel {result['unitid']}")
|
||||||
resultsock.shutdown(socket.SHUT_RDWR)
|
resultsock.shutdown(socket.SHUT_RDWR)
|
||||||
resultfile.close()
|
resultfile.close()
|
||||||
|
|
||||||
|
receptor_ctl.simple_command(f"work release {result['unitid']}")
|
||||||
status = res.status
|
status = res.status
|
||||||
rc = res.rc
|
rc = res.rc
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user