Asquator commented on issue #26760: URL: https://github.com/apache/airflow/issues/26760#issuecomment-3808256678
The code above is actually just one use of `dag_run.get_last_ti` when there are multiple of them. Some failures (DAG timeouts or tasks deadlocked) can't be associated with a task failure, while other ones can be. If the dag is `fail_fast`, then one specific task can be pointed at. If not, we can prbly take the first failed task for backcomp (the two cases are pretty equivalent in code, just slightly different conceptually) Summary: 1. If DAG failed (for leaf or `fail_fast`, pass the first failed task's context) 2. If DAG failed not due to task failure, pass no context at all -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
