potiuk commented on issue #28951: URL: https://github.com/apache/airflow/issues/28951#issuecomment-1383273617
@Taragolis is right, but It made me recall something. What we could do (and I will update the description appropriately) is to add `skip_exit_code` parameter to the DoclerOperator. I think we should be able to get the exit code resulting in skipping rather than failing as we did in Bash Operator: From https://airflow.apache.org/docs/apache-airflow/stable/_api/airflow/operators/bash/index.html ``` skip_exit_code ([int](https://docs.python.org/3/library/functions.html#int)) – If task exits with this exit code, leave the task in skipped state (default: 99). If set to None, any non-zero exit code will be treated as a failure. ``` Adding this parameter and possibly updating documentation of AirlfowSkipException to clarify the behaviour would be a nice thing to add. Marking it as good first issue bue mayne @emil-k you could add a PR for that if you think you would like to become a contributor ? -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
