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: [email protected]

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

Reply via email to