dstandish opened a new pull request #13421:
URL: https://github.com/apache/airflow/pull/13421


   Airflow's `skipped` task status can be useful when building dags for some 
trickier requirements.
   
   This PR adds to `BashOperator` the capability to end the task in `skipped` 
state.
   
   If the command exits with code 255, an `AirflowSkippedException` is thrown.
   
   If you have a better suggestion re choice of exit code, suggest.  I chose 
255 because I think it is pretty unlikely to be found in the wild, which means 
this would only be a "breaking" change in a negligible sense.
   
   If we don't like exit codes for this, we could come up with some convention 
for parsing stdout.  But exit codes seems simple and good enough.
   


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

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


Reply via email to