sunank200 commented on code in PR #40084:
URL: https://github.com/apache/airflow/pull/40084#discussion_r1684549574


##########
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:
   The next_method doesn't matter in ending task. It can be None as well. But I 
can create a constant as mentioned.



-- 
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]

Reply via email to