uranusjr commented on code in PR #40084:
URL: https://github.com/apache/airflow/pull/40084#discussion_r1682367304
##########
airflow/exceptions.py:
##########
@@ -372,9 +372,15 @@ class TaskDeferred(BaseException):
Signal an operator moving to deferred state.
Special exception raised to signal that the operator it was raised from
- wishes to defer until a trigger fires.
+ wishes to defer until a trigger fires. Triggers can send execution back to
task or end the task instance
+ directly. If the trigger will end the task instance itself,
``method_name`` should be
+ None; otherwise, provide the name of the method that should be used when
+ resuming execution in the task.
Review Comment:
Yeah I think it does not matter, and the docstring should just say so
instead.
--
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]