-
Notifications
You must be signed in to change notification settings - Fork 70
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
Reduce the idle timeout #314
Conversation
When the job fails, it waits 10 minutes to kill the job. Reducing it to 5 minutes Signed-off-by: Fabricio Aguiar <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fao89 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/5edfd0c098c44dd091d0692c0ea936fb ✔️ edpm-ansible-molecule-edpm_podman SUCCESS in 5m 51s |
recheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make more sense to adjust the variable in the cases when it idles for too long?
I think 10 minutes is too long, do we have any task that might idle for that long? |
@@ -1,6 +1,6 @@ | |||
# If no output is detected from ansible in this number of seconds the execution will | |||
# be terminated. | |||
idle_timeout: ${RUNNER_IDLE_TIMEOUT:-600} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the ansible runner default https://ansible.readthedocs.io/projects/runner/en/stable/intro/#env-settings-settings-for-runner-itself. Not sure if we should reduce it.
We probably could find the better way to know that the job has failed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to find something in the ansible-runner to understand why it hangs when it fails, but I didn't find anything
I'll close as it is not the real issue, the real issue is to avoid ansible hanging when it fails |
this was the root cause: ansible/ansible-runner#1327 |
When the job fails, it waits 10 minutes to kill the job. Reducing it to 5 minutes