Skip to main content

Airflow Supporter

Project description

airflow_supporter

airflow_supporter provide services to supporter to manage Apache Airflow

Usage

  1. Alert email on off DAG and turn on DAG automatically

    • Insert following example in your DAG

      from airflow_supporter.dag.check_off_dag import create_check_off_dag
      create_check_off_dag()
      
    • Variable

      • enroll following Variable in your airflow
      • check_off_dag_variable
        {
          exclude_dag_list: list[str],  default empty list,
          automatically_turn_on: bool, default true,
          email: Optional[str]
        }
      
  2. Restart failed DagRun

     @dag(dag_id="restart_failed_dagrun_dag", schedule="* * * * *", is_paused_upon_creation=False, catchup=False,
         start_date=datetime(year=1970, month=1, day=1), )
     def restart_failed_dagrun_dag() -> None:
         restart_failed_dagrun_op.restart_failed_dagrun_op(rv=RestartFailedDagrunVariable())
    
     restart_failed_dagrun_dag()
    
  3. Restart stucked Task

      @dag(dag_id="clear_stucked_task_dag", schedule="* * * * *", is_paused_upon_creation=False, catchup=False,
          start_date=datetime(year=1970, month=1, day=1), )
      def clear_stucked_task_dag() -> None:
          restart_stucked_task_op.clear_stucked_task_op(rv=RestartStuckedTaskVariable())
    
      clear_stucked_task_dag()
    

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

airflow_supporter-1.0.0.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

airflow_supporter-1.0.0-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page