You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/01 07:40:16 UTC

[GitHub] [airflow] dstandish commented on pull request #13421: BashOperator to raise AirflowSkipException on exit code 255

dstandish commented on pull request #13421:
URL: https://github.com/apache/airflow/pull/13421#issuecomment-753280746


   > What is special about `BashOperator` that you suggest this modification only for this operator?
   > I agree that SKIP state can be useful but I think there should be a more generic approach that will fit all operators rather than specific one.
   
   Most other operators do their work in python.  So they can easily raise `AirflowSkipException`.
   
   You can't do that from bash.  That's what's special about bash operator.  You need some way to signal from within the bash process "ok, i want to skip now", so that when it comes back to python, the exception can be raised.
   


----------------------------------------------------------------
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:
users@infra.apache.org