Files
airflow/dags/company/dag_company.py
T
2025-06-09 10:50:30 +08:00

26 lines
818 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',
)
t2 = BashOperator(
task_id='fill_commpany_dev',
bash_command='python /opt/airflow/dags/repo/dags/company/company/fill_commpany_dev.py',
)
t3 = BashOperator(
task_id='mark_right_dev',
bash_command='python /opt/airflow/dags/repo/dags/company/company/mark_right_dev.py',
)
t1 >> t2 >> t3