Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Latest commit

 

History

History
37 lines (31 loc) · 842 Bytes

userguide.md

File metadata and controls

37 lines (31 loc) · 842 Bytes

User Guide

TODO

FAQs

  1. How do we refresh DAGs ? Canonical way airflow supports refreshing DAGs is via dag_dir_list_interval config. https://cwiki.apache.org/confluence/display/AIRFLOW/Scheduler+Basics#Configuration You can set that config using cluster.spec.config.airflow Set the env AIRFLOW__SCHEDULER__ DAG_DIR_LIST_INTERVAL By default dags are refreshed every 5 minutes. To enable continuous sync, use git or gcs dag source with once disabled.
apiVersion: airflow.k8s.io/v1alpha1
kind: AirflowCluster
...
spec:
  ...
  config:
    airflow:
      AIRFLOW__SCHEDULER__DAG_DIR_LIST_INTERVAL: 100 # default is 300s
  ...
  dags:
    subdir: ""
    gcs:
      bucket: "mydags"
  # OR
  dags:
    subdir: "airflow/example_dags/"
    git:
      repo: "https://github.com/apache/incubator-airflow/"
      once: false