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

   > I’m also hesitant this adds quite some overhead to ti_run, which is run 
for eavery ti—especially problematic for mapped tasks.
   
   The overhead only applies to stub tasks. ti_run already loads the serialized 
task when `ti.is_stub` is set, and Python tasks never take that path no matter 
it's mapped or not.
   
   For a mapped stub task, the new work is a few TaskMap length lookups and one 
count of the expanded instances.
   Each upstream's length is loaded once, and no XCom value is read.
   
   
   > Some more investigation is needed on better design.
   
   Sure, let's discuss and brainstorm it before committing to this approach.
   
   Since the XCom backend helper process from #75184 has merged, it _could_ run 
this arithmetic instead.
   It would get the serialized task from the API server or from the SDK 
runtime, and Python tasks could later reuse the same module.
   
   The cost of moving the arithmetic to the worker is the helper Python process 
would have to start for every mapped stub task, not only when a custom XCom 
backend is configured.
     


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