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.

Install the Python Templates Copier Update GitHub App to receive weekly template update pull requests.

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.3.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.3-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for airflow_supervisor-1.10.3.tar.gz
Algorithm Hash digest
SHA256 d1eb4ecfabcdd54539128e2f11469b6bf0d5bf9618c86ba4c7e66605f0138976
MD5 f3e3b9bf8147edb7f834641de31a37fa
BLAKE2b-256 79916dbd4878153eab0188929061c37a145137b34a1264bb45175110cbac9cf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for airflow_supervisor-1.10.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aaf07ad9ae359b726ba43d96069a66025438784b1d1b01698113806052a91dca
MD5 f1a832dced8e7b8508002e0b572ee40e
BLAKE2b-256 677453c2792ace706dbd51855427f4af2bc626724766155995ec4e2eeb3a404c

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