You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ashb (via GitHub)" <gi...@apache.org> on 2024/12/06 13:28:58 UTC

Re: [PR] AIP-72: Scaffold task instance RTIF API calls during task startup [airflow]

ashb commented on code in PR #44725:
URL: https://github.com/apache/airflow/pull/44725#discussion_r1873340676


##########
task_sdk/src/airflow/sdk/execution_time/comms.py:
##########
@@ -138,7 +138,9 @@ class PutVariable(BaseModel):
     type: Literal["PutVariable"] = "PutVariable"
 
 
+RTIFPayload = RootModel[dict[str, Optional[str]]]

Review Comment:
   So in this case we can't use a root model, as we need a `type` parameter on the request to know what kind of object we get. (I think!)



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