airflow_supervisor.Supervisor¶
- class airflow_supervisor.Supervisor(dag: DAG, cfg: SupervisorAirflowConfiguration, **kwargs)[source]¶
Bases:
object- __init__(dag: DAG, cfg: SupervisorAirflowConfiguration, **kwargs)[source]¶
Methods
__init__(dag, cfg, **kwargs)get_base_operator_kwargs()get_step_kwargs(step)get_step_operator(step)initialize_tasks()program_operator(program, action, **kwargs)Create a discrete start, stop, or restart task for a managed program group.
set_downstream(other)set_upstream(other)setup_dag()update_relative(other[, upstream, edge_modifier])Attributes
check_programsconfigure_supervisorleavesReturn the leaves of the DAG.
program_tasksDiscrete start, delay, and stop tasks, keyed by Supervisor program group.
restart_programsrootsReturn the roots of the DAG.
start_programsstart_supervisorstop_programsstop_supervisorsupervisor_clientunconfigure_supervisor