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 2022/04/14 16:45:02 UTC

[GitHub] [airflow] MatrixManAtYrService commented on issue #23020: Names for expanded tasks

MatrixManAtYrService commented on issue #23020:
URL: https://github.com/apache/airflow/issues/23020#issuecomment-1099391966

   When I think about how the API might look, I come up with this:
   
   ```python
   BashOperator.partial(task_id="say").expand_dicts(
       bash_command={
           "generic": "echo hello",
           "cow": "cowsay $MESSAGE",
           "pikachu": "pokemonsay -p Pikachu $MESSAGE",
       },
       env={
           "pikachu": {"MESSAGE": "pika"},
           "cow": {"MESSAGE": "moo"}
       },
   )
   ```
   
   This would create three tasks, and the "generic" one wouldn't define any env vars.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org