uranusjr commented on code in PR #38674:
URL: https://github.com/apache/airflow/pull/38674#discussion_r1575761706
##########
airflow/models/baseoperator.py:
##########
@@ -1693,6 +1698,16 @@ def inherits_from_empty_operator(self):
# of its subclasses (which don't inherit from anything but
BaseOperator).
return getattr(self, "_is_empty", False)
+ @property
+ def start_trigger(self) -> BaseTrigger | None:
+ """Trigger when deferring task."""
+ return self._start_trigger
+
+ @property
+ def next_method(self) -> str | None:
+ """Method to execute after finish deferring."""
+ return self._next_method
Review Comment:
I don’t think this _technically_ breaks anything though? And we already have
a lot of such attributes that don’t work with reassignments. I think it should
be fine as long as the attribute is not documented as settable.
--
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]