mobuchowski opened a new issue #17984: URL: https://github.com/apache/airflow/issues/17984
### Description Provide way for `LineageBackend` to be notified of task instance start and failed execution. Proposed implementation: 1) add start and fail methods to LineageBackend 2) prepare_lineage decorator should call LineageBackend's start method the same way that apply_lineage calls send_lineage. 3) call fail method on where on_failure_callback is called. ### Use case/motivation I'm working on [OpenLineage](https://openlineage.io/) integration for Airflow 2. [I've created MVP of this.](https://github.com/OpenLineage/OpenLineage/blob/airflow/2/integration/airflow/openlineage/airflow/backend.py) In contrast to Airflow 1.10's integration via subclassing DAG, `LineageBackend` provides easy way to integrate OpenLineage just via configuration. However, `LineageBackend.send_lineage` is called just on successful task execution, while we also want to track newly started and failed tasks. ### Related issues _No response_ ### Are you willing to submit a PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
