uranusjr commented on code in PR #32000:
URL: https://github.com/apache/airflow/pull/32000#discussion_r1260169616
##########
airflow/models/dag.py:
##########
@@ -2763,16 +2762,20 @@ def add_logger_if_needed(ti: TaskInstance):
if ti.state == TaskInstanceState.SCHEDULED:
if ti.next_method:
try:
- execute_callable = getattr(tasks[ti.task_id],
ti.next_method)
- execute_callable(context={}, event=ti.next_kwargs)
+ if isinstance(tasks[ti.task_id], MappedOperator):
+ execute_callable =
getattr(tasks[ti.task_id].operator_class, ti.next_method)
Review Comment:
You can’t do this. I’ll push some changes since it’s faster than explaining
how a non-mapped operator can be obtained…
##########
airflow/models/dag.py:
##########
@@ -2763,16 +2762,20 @@ def add_logger_if_needed(ti: TaskInstance):
if ti.state == TaskInstanceState.SCHEDULED:
if ti.next_method:
try:
- execute_callable = getattr(tasks[ti.task_id],
ti.next_method)
- execute_callable(context={}, event=ti.next_kwargs)
+ if isinstance(tasks[ti.task_id], MappedOperator):
+ execute_callable =
getattr(tasks[ti.task_id].operator_class, ti.next_method)
Review Comment:
You can’t do this. I’ll push some changes since it’s faster than explaining
how a non-mapped operator can be obtained…
--
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]