also skip polling when async failed

pull/23832/head
Brian Coca 7 years ago
parent 9bcc3f298f
commit b4b96143fe

@ -537,7 +537,7 @@ class TaskExecutor:
vars_copy[self._task.register] = wrap_var(result.copy())
if self._task.async > 0:
if self._task.poll > 0 and not result.get('skipped'):
if self._task.poll > 0 and not result.get('skipped') and not result.get('failed'):
result = self._poll_async_result(result=result, templar=templar, task_vars=vars_copy)
#FIXME callback 'v2_runner_on_async_poll' here

Loading…
Cancel
Save