You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/21 19:11:40 UTC

[GitHub] [airflow] casassg edited a comment on pull request #12228: taskgroup decorator (#11870)

casassg edited a comment on pull request #12228:
URL: https://github.com/apache/airflow/pull/12228#issuecomment-749146353


   You mean something like:
   
   ```py
   @dag
   def movielens_hpt(dataset_path: str, feature_list:list=['year', 'director']):
     dataset = load_dataset(dataset_path)
   
     # NEW HERE
     for i in range(0.1, 0.9, step=0.1):
       with dag.taskgroup(f'pipeline_{i}'):
          movielens_model_pipeline(i, feature_list, dataset)
     
     decide_best_model(...)
   ```
   
   I think this could work. I think it would be fun to have it be generated automatically for you, but agree that both approaches make sense.


----------------------------------------------------------------
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:
users@infra.apache.org