Add dags/soosoo/sample.py

This commit is contained in:
cheetahadmin 2025-08-27 07:45:43 +00:00
parent 8ec23f2518
commit c24b7350e2

18
dags/soosoo/sample.py Normal file

@ -0,0 +1,18 @@
from datetime import datetime
from airflow import DAG
from airflow.operators.python import PythonOperator
def print_test():
print('Hello World')
with DAG(
dag_id='DAG_test',
default_args={'retries': 1},
schedule='@once',
start_date=datetime(2025, 8, 11),
catchup=False,
) as dag:
t1 = PythonOperator(
task_id='print_test',
python_callable=print_test,
)