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

Add Option for BashOperator to Set State to SKIPPED #8245

Closed
xyu opened this issue Apr 10, 2020 · 2 comments
Closed

Add Option for BashOperator to Set State to SKIPPED #8245

xyu opened this issue Apr 10, 2020 · 2 comments
Labels

Comments

@xyu
Copy link
Contributor

xyu commented Apr 10, 2020

Allow BashOperator Tasks to Skip instead of Fail

With the BashOperator sometimes I want to signal that the task should soft fail / return in a skipped state for itself and downstream tasks without having to hard fail it. I think it would be a good idea to add an option on the operator so that when the exit code matches what is given instead of failing task we raise a skip exception.

Related Issues

I've created #8244 as an example / idea of what I think could be done to implement this feature.

@xyu xyu added the kind:feature Feature Requests label Apr 10, 2020
@boring-cyborg
Copy link

boring-cyborg bot commented Apr 10, 2020

Thanks for opening your first issue here! Be sure to follow the issue template!

@ashb
Copy link
Member

ashb commented Mar 26, 2021

Closed by #13421 but exit code will be changed in #14963

@ashb ashb closed this as completed Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants