Files
airflow/dags/example_python_operator.py
T
2022-06-27 18:45:32 +08:00

17 lines
359 B
Python

import logging
import shutil
import time
from datetime import datetime
from airflow import DAG
from airflow.decorators import task
log = logging.getLogger(__name__)
with DAG(
dag_id='example_python_operator',
schedule_interval="*/1 * * * *",
start_date=datetime(2021, 1, 1),
catchup=False,
tags=['example'],
) as dag:
print('success')