https://www.youtube.com/watch?v=SY_kaMZyZmw&list=PL589M8KPPT1ZaJPQwLKc4tS6wUf6v_KBF
Getting Started with Apache Airflow: Introduction & DAG Creation | Part 2
from airflow import DAG
from airflow.operators.bash import BashOperator
from datetime import datetime
with DAG(
dag_id='myseconfDagcopy',
start_date=datetime(2023, 1, 1),
schedule=None,
) as dag:
# Ini adalah contoh penulisan task
t1 = BashOperator(
task_id='t1_print_hello2',
bash_command='echo "Halo dari Airflow!2 yg kedua 13102026"',
)
# Ini adalah contoh penulisan task
t2 = BashOperator(
task_id='t2_2_hello_airflow_yg_ke_2',
bash_command='echo "Halo dari 22 Airflow!"',
)
t1 >> t2
0 Response to "Airflow code -- 1"
Posting Komentar