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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]