sunank200 commented on code in PR #40084:
URL: https://github.com/apache/airflow/pull/40084#discussion_r1677326460
##########
airflow/models/baseoperator.py:
##########
@@ -1704,15 +1704,18 @@ def defer(
self,
*,
trigger: BaseTrigger,
- method_name: str,
+ method_name: str = TaskDeferred.TRIGGER_EXIT,
kwargs: dict[str, Any] | None = None,
timeout: timedelta | None = None,
) -> NoReturn:
"""
Mark this Operator "deferred", suspending its execution until the
provided trigger fires an event.
This is achieved by raising a special exception (TaskDeferred)
- which is caught in the main _execute_task wrapper.
+ which is caught in the main _execute_task wrapper. Triggers can send
execution back to task or end
Review Comment:
Changed it
--
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]