This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name This ain't a place for devops | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @author Alessandro | |
// @match http://<airflow-instance-url-here>/admin/ | |
// @grant none | |
// ==/UserScript== | |
(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime, date, timedelta | |
from airflow import DAG | |
from airflow.operators.python_operator import BranchPythonOperator, PythonOperator | |
from airflow.operators.dummy_operator import DummyOperator | |
from airflow.operators.subdag_operator import SubDagOperator | |
# Dag is returned by a factory method | |
def sub_dag(parent_dag_name, child_dag_name, start_date, schedule_interval): | |
dag = DAG( | |
'%s.%s' % (parent_dag_name, child_dag_name), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
from airflow import DAG | |
from airflow.operators.python_operator import PythonOperator | |
from airflow.operators.dummy_operator import DummyOperator | |
dag = DAG( | |
'test_branches', | |
description='Test branches', | |
catchup=False, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer