uranusjr commented on PR #70570:
URL: https://github.com/apache/airflow/pull/70570#issuecomment-7187022495

   In Python, the task process resolves them after the fork from its own parse 
of the Dag file. The closest equivalent to this in other languages would be to 
do it in the SDK, _but_ after some poking I think your approach to do it in a 
sidecar is actually better, and Python should be changed to do this _before_ 
fork instead (and maybe reuse the same Python code).
   
   Let’s amend ADR-0016 first, and then rework this. We probably should also do 
the Python changes in parallel (or at least consider it when we implement the 
sidecar logic) to make sure things work both ways.
   
   Another thing we need to be careful with is performance. There’s probably no 
way to work around it (we need what we need, and Python is Python), so some 
documentation to remind users not to too heavily-load a Python file containing 
the dag is probably the best we can do.


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