Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make current working directory as templated field in BashOperator #37928

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

Taragolis
Copy link
Contributor

Make cwd, as templated fields in BashOperator, so it might be easier to set CWD as folder where DAG placed as {{ dag.folder }} or DAG Folders {{ conf.get_mandatory_value('core', 'dags_folder') }}


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@Taragolis Taragolis added the area:core-operators Operators, Sensors and hooks within Core Airflow label Mar 6, 2024
@Taragolis Taragolis requested a review from eladkal March 6, 2024 06:56
airflow/operators/bash.py Outdated Show resolved Hide resolved
@eladkal eladkal added this to the Airflow 2.9.0 milestone Mar 6, 2024
@eladkal eladkal added the type:improvement Changelog: Improvements label Mar 6, 2024
@Taragolis Taragolis merged commit db07eb1 into apache:main Mar 6, 2024
54 checks passed
@Taragolis Taragolis deleted the bash-templated-cwd branch March 6, 2024 17:27
potiuk added a commit to potiuk/airflow that referenced this pull request Mar 6, 2024
potiuk added a commit that referenced this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core-operators Operators, Sensors and hooks within Core Airflow type:improvement Changelog: Improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants