-
Notifications
You must be signed in to change notification settings - Fork 356
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
Differentiate timeout vs idle timeout #1200
base: devel
Are you sure you want to change the base?
Differentiate timeout vs idle timeout #1200
Conversation
a50a401
to
e5cf8da
Compare
@@ -337,7 +337,7 @@ def _decode(x): | |||
if self.config.idle_timeout and (time.time() - self.last_stdout_update) > self.config.idle_timeout: | |||
self.kill_container() | |||
Runner.handle_termination(child.pid, is_cancel=False) | |||
self.timed_out = True | |||
self.idle_timed_out = True |
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.
This will need a default like timed_out
has on line 37. Otherwise if we don't hit this case, we'll crash when we check the variable below.
currently idle timeout and timeout result in the same status call back this result in the AWX not being able to parse the differences between the two failure condition and make it confusing to debg Co-Authored-By: Gabriel Muniz <[email protected]>
e5cf8da
to
d392c51
Compare
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.
You are missing checks in several places where currently self.timed_out
is checked for cleanup, return codes, etc.
Also, we might need to consider if this is a breaking change because status
value is now different, which is sort of an API change. Not sure this can be backported.
Really quick 2 cents here - I also think the API change of a new ansible-runner/ansible_runner/runner.py Lines 101 to 109 in d392c51
Instead of using a new |
currently idle timeout and timeout result in the same status call back this result in the AWX not being able to parse the differences between the two failure condition and make it confusing to debug