-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdag_py_qlik.py
More file actions
29 lines (22 loc) · 813 Bytes
/
Copy pathdag_py_qlik.py
File metadata and controls
29 lines (22 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from airflow import DAG
from airflow.operators import BashOperator
from airflow.operators import PythonOperator
from datetime import datetime, timedelta
default_args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': datetime(2021, 7, 6),
'email': ['airflow@airflow.com'],
'email_on_failure': False,
'email_on_retry': False,
'retries': 1,
'retry_delay': timedelta(minutes=5)
}
with DAG(dag_id="podcast_dag", schedule_interval="@daily", default_args=default_args) as dag:
t1 = BashOperator(
task_id='podcasts',
bash_command='python /home/airflow/gcs/data/filename.py')
t2 = BashOperator(
task_id='qlik',
bash_command='python /home/airflow/gcs/data/filename.py')
t1 >> t2