18 lines
488 B
Python
18 lines
488 B
Python
from datetime import timedelta
|
|
|
|
from airflow.operators.bash import BashOperator
|
|
import pendulum
|
|
from airflow import DAG
|
|
|
|
with DAG(
|
|
dag_id="didata_company",
|
|
schedule_interval=None,
|
|
start_date=pendulum.datetime(2025, 6, 5, tz="Asia/Shanghai"),
|
|
catchup=True,
|
|
description="企业涉农处理"
|
|
) as dag:
|
|
t1 = BashOperator(
|
|
task_id='fill_commpany_comm',
|
|
bash_command='python /opt/airflow/dags/repo/dags/company/company/fill_company_comm.py',
|
|
)
|
|
t1 |