mobuchowski opened a new pull request, #32716: URL: https://github.com/apache/airflow/pull/32716
Previously, `on_task_instance_running` was being called in `_run_raw_task`. After this, it will be running close to where `pre_execute` callback is called. This had disadvantage of being run before operator templates are rendered. In some usages, this required users of this interface (like OpenLineage) to resolve templates themselves, which comes with obvious performance drawback. Now, the state of actual executed task is the same as on `execute`. Another reason of moving call site is that idea of task instance listener API is to provide notification as close to when actual execution happens. This is as close as we can get AFAIK. -- 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]
