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


   If I may pitch an idea; instead of creating Venvs for each task/operator, 
what about creating a virtualdag e.g
   
   ```python
   
   with VenvDAG(
       default_args=default_args,
       schedule_interval=timedelta(days=1),
       start_date=days_ago(1),
       tags=['venv'],
      requirements = "requirements.txt"
   ) as dag:
   
       t1 = PythonOperator()
       t2 = PythonOperator()
   
   t1 >>t2
   ```
   such that `VenvDAG` spins up a venv where `t1` and `t2` lives in.
   
   
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to