Skip to main content

airflow-supervisor

Run and monitor supervisord-managed jobs from Apache Airflow.

Build Status codecov License PyPI

from airflow import DAG
from airflow_supervisor import ProgramConfiguration, Supervisor, SupervisorAirflowConfiguration

dag = DAG(dag_id="nightly-supervisor", schedule="@daily")
config = SupervisorAirflowConfiguration(
    working_dir="/var/tmp/nightly-supervisor",
    program={
        "nightly": ProgramConfiguration(command="python /opt/jobs/nightly.py"),
    },
)
Supervisor(dag=dag, cfg=config)

The generated lifecycle creates a dedicated supervisord instance, starts and monitors programs with airflow-ha, handles retriggers, and optionally stops and removes the instance. SupervisorSSH manages the same lifecycle remotely.

Documentation

Published documentation is available at airflow-laminar.github.io/airflow-supervisor.

Ecosystem

[!NOTE] This library was generated using copier from the Base Python Project Template repository.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airflow_supervisor-1.10.4.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airflow_supervisor-1.10.4-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file airflow_supervisor-1.10.4.tar.gz.

File metadata

  • Download URL: airflow_supervisor-1.10.4.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for airflow_supervisor-1.10.4.tar.gz
Algorithm Hash digest
SHA256 5e403ecf70e6b76139a9acbc159e450d235e66686ac9be8c3fce0b603f2ff852
MD5 58d7d7ec86a06d865b95244d3faf8657
BLAKE2b-256 b17ee6962b1833e2a5d0273b5edf82a1170e5641b1c5c2326bb36d02d658752a

See more details on using hashes here.

File details

Details for the file airflow_supervisor-1.10.4-py3-none-any.whl.

File metadata

File hashes

Hashes for airflow_supervisor-1.10.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1634bfee059a3a9d41eae0a83b23b4ebd6a99acaf4e8f21fbb3f7427e0ff118a
MD5 99d3d87bfdfe8e97d92e5bd4f321b7b8
BLAKE2b-256 05a5fbf7f568f3cc36652ee26677290ed8b09113da6cc59f75501767410e01ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page