# Ansible: async getting error "async task did not complete within the requested time"

**URL:** <https://forum.ansible.com/t/ansible-async-getting-error-async-task-did-not-complete-within-the-requested-time/28524>\
**Category:** Ansible Project\
**Created:** [September 7, 2018, 3:19am UTC](https://forum.ansible.com/t/ansible-async-getting-error-async-task-did-not-complete-within-the-requested-time/28524 "2018-09-07T03:19:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankur\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@Ankur\_Gupta](https://forum.ansible.com/u/Ankur_Gupta)\
**Post date:** [September 7, 2018, 3:19am UTC](https://forum.ansible.com/t/ansible-async-getting-error-async-task-did-not-complete-within-the-requested-time/28524/1 "2018-09-07T03:19:09Z")

</div>

Hello Everyone,

I have a task, where I need to run shell command which takes 22-25 min to execute after that it reboots the system.  
when playbook runs command execute successfully reboot the system but after some time its gives the error " async task did not complete within the requested time"

here is my playbook:

`

- name: Task | swupgrade execution started on new {{ component\_name }} system  
command: sudo -i /opt/bin/swupgrade -U {{ component\_name }}-{{ to\_version }}.tar  
async: 1800  
poll: 5  
ignore\_errors: yes

- name: Wait for SSH to come up  
local\_action:  
module: wait\_for  
host: “{{ inventory\_hostname }}”  
port: 22  
delay: 5  
timeout: 720  
state: started  
register: ssh\_up  
ignore\_errors: yes

`

Can you let me know what I am doing here wrong?
