1fanwang commented on code in PR #73816:
URL: https://github.com/apache/airflow/pull/73816#discussion_r4760559896
##########
shared/listeners/src/airflow_shared/listeners/spec/taskinstance.py:
##########
@@ -52,8 +53,10 @@ def on_task_instance_failed(
previous_state: TaskInstanceState | None,
task_instance: RuntimeTaskInstance | TaskInstance,
error: None | str | BaseException,
-):
- """Execute when task state changes to FAIL. previous_state can be None."""
+ failure_kind: TaskFailureKind | None,
Review Comment:
> How do you see listeners that support several Airflow versions
(OpenLineage, say) adopting this?
Plugins can keep their old signature or register a listener for the
installed hookspec. Pluggy 1.5 and 1.6 skip defaulted arguments; 1.7 passes the
supplied values. I documented that distinction in
https://github.com/apache/airflow/commit/0d62ec2c87ff6ee6587d8be066f25c03083c8a3d.
--
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]