Allows overriding 'timeout' and 'gather_job_timeout' to 'manage.up' runner call #40018
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR allows overriding
timeout
andgather_job_timeout
parameters tomanage.up
andmanage.status
runners. These two parameters are set in our master configuration with a high value, as we want to wait by default for jobs that takes long to execute:When dealing with an scenario where some minions are down, if we execute
manage.up
runner to check for minions that are up and running, it will end up after reaching the two timeouts. This makesmanage.up
runner unusable as presence mechanism because we cannot get a response in some short and fixed time.With this PR, we are able to call
manage.up
runner passingtimeout
andgather_job_timeout
parameters which are used to perform the upcomingtest.ping
job that the runner is going to trigger.This way we can get a quick response of
manage.up
runner in case of unreachable minions. Even if we call the runner via API.Previous Behavior
New Behavior
Tests written?
No
What do you think about this?
I also tried with
manage.present
runner but it doesn't fit well in our scenario. Is there another quick way to check for the actual presence of minions in a context with unreachable minions?Any feedback or opinions are more than welcome! 馃槃
Thanks
/cc @moio