# Query on Async and Poll

**URL:** <https://forum.ansible.com/t/query-on-async-and-poll/21413>\
**Category:** Ansible Project\
**Created:** [May 11, 2016, 7:22pm UTC](https://forum.ansible.com/t/query-on-async-and-poll/21413 "2016-05-11T19:22:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aprameya\_NDS](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@Aprameya\_NDS](https://forum.ansible.com/u/Aprameya_NDS)\
**Post date:** [May 11, 2016, 7:22pm UTC](https://forum.ansible.com/t/query-on-async-and-poll/21413/1 "2016-05-11T19:22:29Z")

</div>

Hi,

I am currently using Ansible for a small traffic tool deployment. The task that i am running is an infinite one which is implemented in a playbook. I have another playbook which would stop based on some conditions.

When i run the playbook as start the task runs infinitely and the tool provides logs. But when i run the same task with async with some large value and poll: 0 i do not get any logs created from the tool.

My query is that can we run a task synchronously for some time and then convert it to be a async task. Can this be done?

If not can you please suggest me any work around or design that i can adopt for such scnearios?

Regards  
Aprameya
