Differentiate timeout vs idle timeout#1200
Differentiate timeout vs idle timeout#1200TheRealHaoLiu wants to merge 1 commit intoansible:develfrom
Conversation
a50a401 to
e5cf8da
Compare
| 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.
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 <gmuniz@redhat.com>
e5cf8da to
d392c51
Compare
Shrews
left a comment
There was a problem hiding this comment.
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