You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hussein-awala (via GitHub)" <gi...@apache.org> on 2023/04/18 00:36:03 UTC
[GitHub] [airflow] hussein-awala commented on a diff in pull request #30692: rename skip_exit_code to skip_on_exit_code and allow providing multiple codes
hussein-awala commented on code in PR #30692:
URL: https://github.com/apache/airflow/pull/30692#discussion_r1169379059
##########
airflow/operators/python.py:
##########
@@ -518,7 +518,13 @@ def __init__(
self.python_version = python_version
self.system_site_packages = system_site_packages
self.pip_install_options = pip_install_options
- self.skip_exit_code = skip_exit_code
+ self.skip_on_exit_code = (
+ skip_on_exit_code
+ if isinstance(skip_on_exit_code, list)
Review Comment:
I like the idea of the `Container` type, usually I use `Iterable`, but `Container` is more suitable since we are using `__contains__` and not `__iter__`
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org