Metadata-Version: 2.5
Name: airflow-ha
Version: 1.6.6
Summary: High Availability (HA) DAG Utility
Project-URL: Repository, https://github.com/airflow-laminar/airflow-ha
Project-URL: Homepage, https://github.com/airflow-laminar/airflow-ha
Author-email: the airflow-ha authors <t.paine154@gmail.com>
License: Apache-2.0
License-File: LICENSE
Keywords: airflow,config,high-availability,scheduler
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.11
Requires-Dist: airflow-pydantic<1.8,>=1.6
Provides-Extra: airflow
Requires-Dist: apache-airflow-providers-ssh; extra == 'airflow'
Requires-Dist: apache-airflow-providers-standard; extra == 'airflow'
Requires-Dist: apache-airflow<3,>=2.8; extra == 'airflow'
Provides-Extra: airflow3
Requires-Dist: apache-airflow-providers-ssh; extra == 'airflow3'
Requires-Dist: apache-airflow-providers-standard; extra == 'airflow3'
Requires-Dist: apache-airflow<3.4,>=3; extra == 'airflow3'
Requires-Dist: sqlalchemy<2.1; extra == 'airflow3'
Provides-Extra: develop
Requires-Dist: airflow-config>=1.11; extra == 'develop'
Requires-Dist: build; extra == 'develop'
Requires-Dist: bump-my-version; extra == 'develop'
Requires-Dist: check-dist; extra == 'develop'
Requires-Dist: codespell; extra == 'develop'
Requires-Dist: hatchling; extra == 'develop'
Requires-Dist: mdformat; extra == 'develop'
Requires-Dist: mdformat-frontmatter; extra == 'develop'
Requires-Dist: mdformat-tables>=1; extra == 'develop'
Requires-Dist: pytest; extra == 'develop'
Requires-Dist: pytest-cov; extra == 'develop'
Requires-Dist: ruff; extra == 'develop'
Requires-Dist: twine; extra == 'develop'
Requires-Dist: ty; extra == 'develop'
Requires-Dist: uv; extra == 'develop'
Requires-Dist: wheel; extra == 'develop'
Description-Content-Type: text/markdown

# airflow-ha

Monitor health with Apache Airflow and branch to stop or retrigger a DAG.

[![Build Status](https://github.com/airflow-laminar/airflow-ha/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/airflow-laminar/airflow-ha/actions/workflows/build.yaml)
[![codecov](https://codecov.io/gh/airflow-laminar/airflow-ha/branch/main/graph/badge.svg)](https://codecov.io/gh/airflow-laminar/airflow-ha)
[![License](https://img.shields.io/github/license/airflow-laminar/airflow-ha)](https://github.com/airflow-laminar/airflow-ha)
[![PyPI](https://img.shields.io/pypi/v/airflow-ha.svg)](https://pypi.python.org/pypi/airflow-ha)

`HighAvailabilityOperator` runs a Python check returning `(Result, Action)`.
Health and recovery are separate: a failed result can retrigger the DAG while
its current run follows a failure branch. Time limits stop monitoring, and
`maxretrigger` bounds recovery attempts while preserving the health result.

## Documentation

- [Tutorial: run a DAG that retriggers itself](docs/src/tutorial.md) builds a countdown with three runs.
- [How-to guides](docs/src/how-to.md) cover service monitoring, alerts, Python and airflow-config, and stop boundaries.
- [API reference](docs/src/API.md) defines results, branches, limits, callbacks, task models, and run configuration.
- [Why health results and recovery actions are separate](docs/src/explanation.md) explains retries, retriggers, and workload ownership.

Published documentation is available at
[airflow-laminar.github.io/airflow-ha](https://airflow-laminar.github.io/airflow-ha/).

## Related integrations

[airflow-supervisor](https://github.com/airflow-laminar/airflow-supervisor) and
[airflow-nomad](https://github.com/airflow-laminar/airflow-nomad) use this sensor
inside external workload lifecycles and add log forwarding and diagnostics.
[airflow-pydantic](https://github.com/airflow-laminar/airflow-pydantic) provides
declarative task models; [airflow-config](https://github.com/airflow-laminar/airflow-config)
loads those models from YAML.

## License

Apache 2.0. See [LICENSE](LICENSE).
