Commit 049c5c17 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

tweak example dags

parent ff3e6752
Loading
Loading
Loading
Loading
+21 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ default_args = {
}

with DAG(
    dag_id="dag_hello_world",
    dag_id="dag_hello_world_5",
    default_args=default_args,
    description="A simple tutorial DAG",
    start_date=datetime(2023, 1, 1),
@@ -32,3 +32,23 @@ with DAG(
        retries=3,
    )
    t1 >> t2

with DAG(
    dag_id="dag_hello_world_60",
    default_args=default_args,
    description="A simple tutorial DAG",
    start_date=datetime(2023, 1, 1),
    schedule="@daily",
    catchup=False,
    tags={"example"},
) as dag:
    t1 = BashOperator(
        task_id="print_date",
        bash_command="date",
    )
    t2 = BashOperator(
        task_id="sleep",
        bash_command="sleep 60",
        retries=3,
    )
    t1 >> t2