Catch an exception and exit with an exit code
Project description
What is Evacuator?
Decorator/context manager designed to catch a certain exception and exit with specific exit code.
- Designed to be used in Apache Airflow with:
BashOperator (airflow>2.1)
PythonVirtualenvOperator (airflow>=2.6)
ExternalPythonOperator (airflow>=2.6)
DockerOperator (apache-airflow-providers-docker>=3.5)
KubernetesPodOperator (apache-airflow-providers-cncf-kubernetes>=6.1)
SSHOperator (apache-airflow-providers-ssh>=3.10)
any other operator support skipping task when process is exited with some specific exit code (skip_on_exit_code option)
How to install
pip install evacuator
Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
evacuator-1.0.4.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for evacuator-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c3a5fafa2c41fba1272e18bead116954cd3ac7bf97c3050fa77f516def88c1b |
|
MD5 | 76f56874a61650c09fe2436278f6e6ff |
|
BLAKE2b-256 | 37520e4caa5d4cfadbbb86a17df30f79c3fb9cd1d46f4dbeb1aa323e4af78acd |