Skip to main content

Lightweight Airflow scheduler-side pack provider for dpone GitOps workloads

Project description

dpone-airflow-pack

dpone-airflow-pack is the lightweight Airflow scheduler/webserver provider for dpone GitOps packs.

It only reads a static airflow-pack.json and builds visible Airflow/Kubernetes tasks. It does not import the full dpone runtime and intentionally contains no source/sink/native transfer dependencies such as ClickHouse, MSSQL, pyodbc, pandas, polars, or ConnectorX.

Recommended Airflow DAG import:

from dpone_airflow_pack import build_dpone_gitops_task_group_from_pack

The full dpone[full,accel] package belongs in the KPO runtime image, not in the scheduler image.

Remote pack cache

Remote airflow-pack.json artifacts can be published to object storage and mirrored into a bounded local scheduler cache.

Bootstrap one generation:

dpone-airflow-pack-sync \
  --once \
  --index-uri s3://do-dwh/dpone-artifacts/prod/airflow-dags-dev/latest/pack-index.json \
  --reader-connection-id s3_dpone_artifacts_reader \
  --cache-dir /opt/airflow/dags/.dpone-cache/airflow

Refresh without restarting Airflow pods:

dpone-airflow-pack-sync \
  --watch \
  --interval-seconds 60 \
  --jitter-seconds 15 \
  --index-uri s3://do-dwh/dpone-artifacts/prod/airflow-dags-dev/latest/pack-index.json \
  --reader-connection-id s3_dpone_artifacts_reader \
  --cache-dir /opt/airflow/dags/.dpone-cache/airflow

The sync loop is fail-open. On S3, connection, index, or hash errors it writes a warning status and preserves the previous current generation. DAG parse stays local and cache-only.

Inspect the current cache status:

dpone-airflow-pack-cache-status \
  --cache-dir /opt/airflow/dags/.dpone-cache/airflow

Airflow execution policy

airflow-pack.json can carry a scheduler-side execution policy:

{
  "airflow": {
    "execution": {
      "task_executor": "KubernetesExecutor",
      "deferrable": true,
      "on_finish_action": "delete_succeeded_pod"
    }
  }
}

The lightweight provider maps it to KubernetesPodOperator kwargs (executor, deferrable, on_finish_action) and treats those fields as pack-owned. DAG-local overrides may still set DAG-owned values such as retries, pool, get_logs, or in_cluster.

Project details


Download files

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

Source Distribution

dpone_airflow_pack-0.66.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

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

dpone_airflow_pack-0.66.0-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file dpone_airflow_pack-0.66.0.tar.gz.

File metadata

  • Download URL: dpone_airflow_pack-0.66.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dpone_airflow_pack-0.66.0.tar.gz
Algorithm Hash digest
SHA256 87e27c316a4c35ecfd23e1eaf2a95d25943a0623a374d212c2ec6a816d47c431
MD5 99868a3d7e0807203b4427d7d6132fbc
BLAKE2b-256 bbf9a3bba024d9c353266998b152c1f896794acf78d381851b5f37dcd549e157

See more details on using hashes here.

File details

Details for the file dpone_airflow_pack-0.66.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dpone_airflow_pack-0.66.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b41ad555d7ccb50488c41c0851c05ecdc0d48051a68e7ff8fe9f3a12c6a5a0d0
MD5 97b3350981b186a0c0a072b85f31cba1
BLAKE2b-256 1a5e59b041eed79be2b7ed698a1afb0259b059102a617eda2a469ee4e5c45f6f

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 Pingdom Monitoring Sentry Error logging StatusPage Status page