uranusjr commented on code in PR #57952:
URL: https://github.com/apache/airflow/pull/57952#discussion_r2512591103


##########
task-sdk/src/airflow/sdk/definitions/dag.py:
##########
@@ -1414,7 +1419,12 @@ def _run_task(
                 trigger = import_string(msg.classpath)(**msg.trigger_kwargs)
                 event = _run_inline_trigger(trigger, task_sdk_ti)
                 ti.next_method = msg.next_method
-                ti.next_kwargs = {"event": event.payload} if event else 
msg.next_kwargs
+                next_kwargs_value = {"event": event.payload} if event else 
msg.next_kwargs
+                ti.next_kwargs = (
+                    next_kwargs_value
+                    if isinstance(next_kwargs_value, dict) or 
next_kwargs_value is None
+                    else None
+                )

Review Comment:
   Hmm, if this is a str it’s an encrypted dict. I don’t think it’s supposed to 
be dropped. Is there a bug somewhere, or should `ti.next_kwargs` simply expect 
str?
   
   Original commit fbbe59a2a927281042f5dbad76143f444e2a82ec
   
   cc @ashb 



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