You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "uranusjr (via GitHub)" <gi...@apache.org> on 2023/06/12 07:08:57 UTC
[GitHub] [airflow] uranusjr commented on a diff in pull request #31808: Can end task instance from trigger
uranusjr commented on code in PR #31808:
URL: https://github.com/apache/airflow/pull/31808#discussion_r1226181851
##########
airflow/models/taskinstance.py:
##########
@@ -1693,6 +1693,8 @@ def _execute_task(self, context, task_orig):
execute_callable = getattr(task_to_execute, self.next_method)
if self.next_kwargs:
execute_callable = partial(execute_callable, **self.next_kwargs)
+ elif self.next_kwargs is not None:
+ raise AirflowException("Task is coming out of deferral without next_method specified.")
Review Comment:
This should use a exception subclass 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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org