-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed
Labels
area:Listenersarea:task-execution-interface-aip72AIP-72: Task Execution Interface (TEI) aka Task SDKAIP-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 SDKAIP-72: Task Execution Interface (TEI) aka Task SDK
Type
Projects
Status
Done