Add clear logging to tasks killed due to a Dagrun timeout #19950
+49
−1
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.
When a DagRun exceeds its
dagrun_timeout
value a few things happen:failed
skipped
(which causes running tasks to be SIGTERM'd)INFO: Run $RUN_NUMBER of $DAG_ID has timed-out
This has caused some confusion amongst users as its hard to tell why running tasks were killed without either:
dagrun_timeout
value with the execution timeThis PR adds additional messaging into the task logs when it can be inferred that the task was killed due to a DagRun timeout.
I'm not super happy with this implementation (as it kind of duplicates the timeout logic to infer that a timeout occurred) and would really appreciate some advice on other ways we can improve the clarity around timeouts.
I'll add some tests for this once I get some feedback on the initial approach.