-
Notifications
You must be signed in to change notification settings - Fork 19
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
Ansible needs a native task timeout support #159
Comments
Not sure what you mean, the below will run just like any other module and time out after 10 seconds, exactly the same as your example just with the
|
We have the
Also, for those modules that are more time-sensitive, they seem to have a timeout argument. So I am not sure with these 2 points, whether we also need |
@ansiblejunky |
Proposal: native timeout support for tasks
Author: Sorin Sbarnea <@ssbarnea> IRC: zbr
Date: 2019-03-12
Motivation
The current use pattern is to run with async but this means adding at least one additional task for each task where you want to implement a timeout, it just does not scale at all, making playbooks more verbose, harder to read and debug.
We just need a simple way to declare a task failed if it exceeded an maximum runtime lenght, with a default of 0 which disables the timeout (backwards compatibe).
Problems
What problems exist that this proposal will solve?
Solution proposal
As seen in this example the module execution would be stopped if it exceeds 10s (seconds is the SI unit of measure for time). This would not be an argument for a specific module, it should apply to most modules.
Testing (optional)
TBH
Documentation (optional)
TBH
The text was updated successfully, but these errors were encountered: