# Ansible waits for async task to complete for non-zero poll value - Intended behavior or some problem here ?

**URL:** <https://forum.ansible.com/t/ansible-waits-for-async-task-to-complete-for-non-zero-poll-value-intended-behavior-or-some-problem-here/24770>\
**Category:** Ansible Project\
**Created:** [June 20, 2017, 8:31am UTC](https://forum.ansible.com/t/ansible-waits-for-async-task-to-complete-for-non-zero-poll-value-intended-behavior-or-some-problem-here/24770 "2017-06-20T08:31:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ishan\_jain](https://avatars.discourse-cdn.com/v4/letter/i/dc4da7/32.png) [@ishan\_jain](https://forum.ansible.com/u/ishan_jain)\
**Post date:** [June 20, 2017, 8:31am UTC](https://forum.ansible.com/t/ansible-waits-for-async-task-to-complete-for-non-zero-poll-value-intended-behavior-or-some-problem-here/24770/1 "2017-06-20T08:31:31Z")

</div>

I want to start a long running task in my playbook and immediately move to the next task, and handle the async task return code later. Here is what i have:

`

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [June 20, 2017, 2:35pm UTC](https://forum.ansible.com/t/ansible-waits-for-async-task-to-complete-for-non-zero-poll-value-intended-behavior-or-some-problem-here/24770/2 "2017-06-20T14:35:23Z")

</div>

This is by design, you want poll 0 AND use async\_status later on to  
check for that job's status.
