also skip polling when async failed
This commit is contained in:
parent
9bcc3f298f
commit
b4b96143fe
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue