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

[Backport] BashOperator: Execute templated bash script as file #43191

Conversation

Joffreybvn
Copy link
Contributor

@Joffreybvn Joffreybvn commented Oct 19, 2024

Backport of #42783 to Airflow 2.

When the BashOperator fails to write the rendered Jinja into a new file, it warns the user to add "write" and "execute" permissions in the working directory before Airflow 3; and fallback to the 2.10.2 behavior: executing the content of the bash script as inline command.


^ 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.

@Joffreybvn Joffreybvn requested a review from potiuk as a code owner October 19, 2024 11:52
@boring-cyborg boring-cyborg bot added area:core-operators Operators, Sensors and hooks within Core Airflow kind:documentation labels Oct 19, 2024
@Joffreybvn Joffreybvn marked this pull request as draft October 19, 2024 11:52
@Joffreybvn Joffreybvn marked this pull request as ready for review October 19, 2024 15:53
@potiuk potiuk merged commit aca2675 into apache:v2-10-test Oct 24, 2024
48 checks passed
@utkarsharma2 utkarsharma2 added the type:bug-fix Changelog: Bug Fixes label Oct 24, 2024
@utkarsharma2 utkarsharma2 added this to the Airflow 2.10.3 milestone Oct 24, 2024
utkarsharma2 pushed a commit that referenced this pull request Oct 24, 2024

---------

Co-authored-by: Joffrey Bienvenu <joffrey.bienvenu@infrabel.be>
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 kind:documentation type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants