Documentation
PLEASE NOTE: This document applies to latest version and not to the latest stable release v2.19
Documentation for other releases can be found by using the version selector in the top right of any doc page.async_status
Check the status of an async task.
Attributes
check_mode:
support: none
Parameters
| Parameter | Required | Type | Values | Description |
|---|---|---|---|---|
| jid | true | integer | Job ID to check status for. |
Example
- name: Start background task
command: ./long_running.sh
async: 300
poll: 0
register: job
- name: Check job status
async_status:
jid: "{{ job.rash_job_id }}"
register: result
until: result.finished
retries: 30
delay: 10