Lee-W commented on code in PR #38674:
URL: https://github.com/apache/airflow/pull/38674#discussion_r1571990864
##########
airflow/models/baseoperator.py:
##########
@@ -1072,6 +1072,8 @@ def __init__(
if SetupTeardownContext.active:
SetupTeardownContext.update_context_map(self)
+ self._start_trigger: BaseTrigger | None = getattr(self,
"_start_trigger", None)
Review Comment:
```python
class Test2Operator(BaseOperator):
def __init__(self, *args, **kwargs):
self._start_trigger = trigger
self._next_method = "execute_complete"
super().__init__(*args, **kwargs)
def execute_complete(self):
pass
```
I'm unsure whether users will do something like this or if we should allow
them. Just want to prevent user from doing it in a not ideal (or even wrong?)
way. Can change it back to `= _start_trigger` if we do not want there user to
do something like this
--
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]