sunank200 commented on code in PR #40084:
URL: https://github.com/apache/airflow/pull/40084#discussion_r1687605717
##########
airflow/models/taskinstance.py:
##########
@@ -715,6 +716,13 @@ def _execute_task(task_instance: TaskInstance |
TaskInstancePydantic, context: C
if not task_instance.next_kwargs:
task_instance.next_kwargs = {}
task_instance.next_kwargs[f"{task_to_execute.__class__.__name__}__sentinel"] =
_sentinel
+ elif task_instance.next_method == "__trigger_exit__":
+ log.error("Task is resuming from deferral without next_method
specified.")
+ raise TaskDeferralError(
+ "Task is resuming from deferral without next_method specified.
"
+ "You must either set `method_name` when deferring, or use a
trigger "
+ "that is designed to exit the task."
+ )
Review Comment:
Removed it.
##########
airflow/models/taskinstance.py:
##########
@@ -715,6 +716,13 @@ def _execute_task(task_instance: TaskInstance |
TaskInstancePydantic, context: C
if not task_instance.next_kwargs:
task_instance.next_kwargs = {}
task_instance.next_kwargs[f"{task_to_execute.__class__.__name__}__sentinel"] =
_sentinel
+ elif task_instance.next_method == "__trigger_exit__":
Review Comment:
Removed 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]