Coverage for airflow.example_dags.tutorial : 100%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
""" ### Tutorial Documentation Code that goes along with the Airflow located [here](http://pythonhosted.org/airflow/tutorial.html) """
datetime.min.time())
'owner': 'airflow', 'depends_on_past': False, 'start_date': seven_days_ago, 'email': ['airflow@airflow.com'], 'email_on_failure': False, 'email_on_retry': False, 'retries': 1, 'retry_delay': timedelta(minutes=5), # 'queue': 'bash_queue', # 'pool': 'backfill', # 'priority_weight': 10, # 'schedule_interval': timedelta(1), # 'end_date': datetime(2016, 1, 1), }
# t1, t2 and t3 are examples of tasks created by instatiating operators task_id='print_date', bash_command='date', dag=dag)
#### Task Documentation You can document your task using the attributes `doc_md` (markdown), `doc` (plain text), `doc_rst`, `doc_json`, `doc_yaml` which gets rendered in the UI's Task Details page.  """
task_id='sleep', depends_on_past=False, bash_command='sleep 5', dag=dag)
{% for i in range(5) %} echo "{{ ds }}" echo "{{ macros.ds_add(ds, 7)}}" echo "{{ params.my_param }}" {% endfor %} """
task_id='templated', depends_on_past=False, bash_command=templated_command, params={'my_param': 'Parameter I passed in'}, dag=dag)
|