josh-fell opened a new pull request, #30176: URL: https://github.com/apache/airflow/pull/30176
Adding a @task.bash TaskFlow decorator to the collection of existing core TaskFlow decorators. This particular decorator will use the return value of the decorated callable as the Bash command to execute using the existing BashOperator functionality. Additionally, this decorator has a specific parameter to make op_kwargs available as environment variables: `push_op_kwargs_to_env`. This parameter provides a, perhaps more Pythonic, means to pass dynamic arguments to a Bash command rather than using the `env` parameter. The `env` parameter could be used for more "static" environment variables within a given use case. (I'd love feedback here on the viability of this idea.) _TODO:_ - [ ] Add docs - [ ] Add examples -- 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]
