Skip to content

Instantly share code, notes, and snippets.

// ==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() {
@cosenal
cosenal / branch_dag_stack_overflow.py
Created August 5, 2018 16:49
stackoverflow.com/questions/51664755/
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),
@cosenal
cosenal / all_success_dag.py
Created August 5, 2018 23:15
comment on stackoverflow.com/questions/51664755
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,
@cosenal
cosenal / qw_benchmark.ipynb
Created February 12, 2025 09:34
qw_benchmark.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.