Repository navigation
Closed
Labels
area:Listenersarea:task-execution-interface-aip72AIP-72: Task Execution Interface (TEI) aka Task SDK
Milestone
Description
Part of #45491
Port Listeners https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/listeners.html#listeners to Task SDK.
airflow/airflow/listeners/spec/taskinstance.py
Lines 33 to 54 in 3fc7322
| @hookspec | |
| def on_task_instance_running( | |
| previous_state: TaskInstanceState | None, task_instance: TaskInstance, session: Session | None | |
| ): | |
| """Execute when task state changes to RUNNING. previous_state can be None.""" | |
| @hookspec | |
| def on_task_instance_success( | |
| previous_state: TaskInstanceState | None, task_instance: TaskInstance, session: Session | None | |
| ): | |
| """Execute when task state changes to SUCCESS. previous_state can be None.""" | |
| @hookspec | |
| def on_task_instance_failed( | |
| previous_state: TaskInstanceState | None, | |
| task_instance: TaskInstance, | |
| error: None | str | BaseException, | |
| session: Session | None, | |
| ): | |
| """Execute when task state changes to FAIL. previous_state can be None.""" |
Metadata
Metadata
Assignees
Labels
area:Listenersarea:task-execution-interface-aip72AIP-72: Task Execution Interface (TEI) aka Task SDK
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]Ensure Listeners work with Task SDK[/-][+]Ensure Task Instance Listeners work with Task SDK[/+]ashb commentedon Feb 16, 2025
These aren't fully functional yet -- it doesn't work with errors.
vatsrahul1001 commentedon Mar 11, 2025
@ashb can we close this issue. Airflow 3.0 not emitting OpenLineage Task Failure Events #46915 address this right?