amoghrajesh commented on code in PR #59711:
URL: https://github.com/apache/airflow/pull/59711#discussion_r2644988698
##########
task-sdk/src/airflow/sdk/api/datamodels/_generated.py:
##########
@@ -181,10 +181,10 @@ class TIDeferredStatePayload(BaseModel):
)
state: Annotated[Literal["deferred"] | None, Field(title="State")] =
"deferred"
classpath: Annotated[str, Field(title="Classpath")]
- trigger_kwargs: Annotated[dict[str, Any] | str | None,
Field(title="Trigger Kwargs")] = None
+ trigger_kwargs: Annotated[JsonValue | str | None, Field(title="Trigger
Kwargs")] = None
trigger_timeout: Annotated[timedelta | None, Field(title="Trigger
Timeout")] = None
next_method: Annotated[str, Field(title="Next Method")]
- next_kwargs: Annotated[dict[str, Any] | None, Field(title="Next Kwargs")]
= None
+ next_kwargs: JsonValue | None = None
Review Comment:
We already handle it here:
https://github.com/apache/airflow/pull/59711/changes#diff-5bef10ab2956abf7360dbf9b509b6e1113407874d24abcc1b276475051f13abfR1387-R1399
We send the `deserialized` value of `next_kwargs` to `resume_execution`
which calls `execute_callable(context, **next_kwargs)`, so at this point, it is
back to being `{"foo": datetime}`
--
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]