potiuk commented on issue #15286:
URL: https://github.com/apache/airflow/issues/15286#issuecomment-886237993


   I came back to the discussion after the Summit, and It gave me some idea 
@uranusjr. The problem with this approach is that you cannot have separate 
operator to prepare env and another to run the env. The problem is that they 
might run on different workers. 
   
   However with the custom XCom backends, I think we are very closet to use 
those backends as a generic Caching mechanism (That we could also use to store 
virtualenv caches). I think it is not that far to be able to add similar 
mechanism as we see in many CI environments, where we could specify ID of the 
cache (with some variations) and pull it from shared location (if exists) or 
push it there after task succeeds. Then we could make python virtualenv  to 
build venv if it is missing (using requirments) and push it after complete. We 
would have to add some basic mechanism of invalidation of the hash (for example 
when hash of requirements.txt changes). 
   
   WDYT @uranusjr ?


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