Actually cancel things

This commit is contained in:
Shane McDonald 2020-11-19 12:44:28 -05:00 committed by Shane McDonald
parent 0184a7c267
commit fd92ba0c0b

View File

@ -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