dstandish commented on code in PR #31808:
URL: https://github.com/apache/airflow/pull/31808#discussion_r1230004173
##########
airflow/triggers/base.py:
##########
@@ -119,3 +119,34 @@ def __eq__(self, other):
if isinstance(other, TriggerEvent):
return other.payload == self.payload
return False
+
+
+class BaseTaskEndEvent(TriggerEvent):
+ """Base event class to end the task without resuming on worker."""
+
+ task_instance_state: TaskInstanceState
+
+ def __init__(self, *, xcom_return: Any | None = None, other_xcom:
dict[str, Any] | None = None, **kwargs):
+ if "payload" in kwargs:
+ raise ValueError("Param 'payload' not supported for this class.")
Review Comment:
Ah i see what you're saying... Well it's in the base class. Would you not
say it's probably a good idea to include kwargs in the subclasses for future
compat?
--
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]