potiuk commented on PR #29776:
URL: https://github.com/apache/airflow/pull/29776#issuecomment-1445406396

   While working on the next step of the POC I also added `task_instance` field 
to the BaseJobPydantic to show how nicely (and automatically Pydantic takes 
care about relations - when you use `BaseJobPydantic.from_orm(LocalTaskJob) it 
will automatically retrieve and convert to Pydantic also the linked 
TaskInstance object and when we serialize/deserialize the Pydantic object, all 
the infrormation that is kept in the TasInstance related to the LocalTaskJob is 
kept in the serialized form.
   
   This is exactly what Pydantic's "from_orm` magic does.


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