vandonr commented on code in PR #28900:
URL: https://github.com/apache/airflow/pull/28900#discussion_r1526276182


##########
airflow/models/taskinstance.py:
##########
@@ -375,6 +379,795 @@ def _creator_note(val):
         return TaskInstanceNote(*val)
 
 
+def _execute_task(task_instance, context, task_orig):
+    """
+    Execute Task (optionally with a Timeout) and push Xcom results.
+
+    :param task_instance: the task instance
+    :param context: Jinja2 context
+    :param task_orig: origin task
+
+    :meta private:
+    """
+    task_to_execute = task_instance.task
+
+    if isinstance(task_to_execute, MappedOperator):
+        raise AirflowException("MappedOperator cannot be executed.")
+
+    # If the task has been deferred and is being executed due to a trigger,
+    # then we need to pick the right method to come back to, otherwise
+    # we go for the default execute
+    execute_callable_kwargs = {}
+    if task_instance.next_method:
+        if task_instance.next_method:

Review Comment:
   hello, coming long after the fact, but I think that during the move, this 
check was duplicated



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to