execution_timeout sometimes not working #24110
Unanswered
ConstantinoSchillebeeckx
asked this question in
Ideas
Replies: 2 comments
-
We faced the same issue. Airflow does not set timeout for callbacks (on_failure/on_success/on_retry...). Sometimes the callbacks take so long to finish and the task gets stuck in running state. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Might be a nice feature to add in case of callback/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Apache Airflow version: 2.0.2
Environment:
What happened:
I have a custom operator that reads a SQL file and simply executes it using the MySQL hook; the operator works just fine though we're having an issue (not related to Airflow) with one of the queries that will intermittently take very long. As a temporary work around, we're setting the
execution_timeout
to a small number (10s) and then using theon_retry_callback
to do cleanup.When this process works as expected, our log looks like:
However sometimes we're noticing the timeout doesn't seem to be killing the task on time:
What you expected to happen:
We expect the task to always get killed at an interval equal to the value for
timeout_execution
Beta Was this translation helpful? Give feedback.
All reactions