New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
async_status does not notice if task timed out #25637
Comments
Files identified in the description: If these files are inaccurate, please update the |
I can confirm it is still an issue with Ansible 2.8.2. |
I also can still confirm it's an issue with 2.9.1 as well:
What I'd love to see is the ability to see either the async job finished attribute also include timeout, or a separate attribute so we can do |
I believe this issue is duplicated with #32181 |
Files identified in the description: If these files are incorrect, please update the |
Fixed by #74199 |
For those finding this issue, the solution is now to look for a msg field value of |
ISSUE TYPE
COMPONENT NAME
async
ANSIBLE VERSION
ansible 2.3.0.0
CONFIGURATION
default ansible.cfg file
OS / ENVIRONMENT
N/A
SUMMARY
When a task is executed with 'poll: 0' (fire and forget) and the time specified in 'async' expires, the async cache remains and a following 'async_status' task reports that the task is still running, although the process was killed.
STEPS TO REPRODUCE
EXPECTED RESULTS
The async_status task should report that the job is not running (like it would be if the job was cleaned up by 'async_status' with 'mode: cleanup'). 'Failed' should not be 0.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: