|
|
@ -640,7 +640,7 @@ class TaskExecutor:
|
|
|
|
return dict(unreachable=True, msg=to_text(e))
|
|
|
|
return dict(unreachable=True, msg=to_text(e))
|
|
|
|
except TaskTimeoutError as e:
|
|
|
|
except TaskTimeoutError as e:
|
|
|
|
msg = 'The %s action failed to execute in the expected time frame (%d) and was terminated' % (self._task.action, self._task.timeout)
|
|
|
|
msg = 'The %s action failed to execute in the expected time frame (%d) and was terminated' % (self._task.action, self._task.timeout)
|
|
|
|
return dict(error='TaskTimeout',failed=True, msg=msg)
|
|
|
|
return dict(error='TaskTimeout', failed=True, msg=msg)
|
|
|
|
finally:
|
|
|
|
finally:
|
|
|
|
if self._task.timeout:
|
|
|
|
if self._task.timeout:
|
|
|
|
signal.alarm(0)
|
|
|
|
signal.alarm(0)
|
|
|
|