Files
airflow/dags/api/dag_njcb_village_statement.py
T

22 lines
696 B
Python

# -*- coding: utf-8 -*-
from airflow import DAG
from airflow.providers.standard.operators.bash import BashOperator
import pendulum
# 每月2号上午9:00执行(北京时间)
with DAG(
dag_id="njcb_village_identify_statement_dag",
schedule="0 9 2 * *",
start_date=pendulum.datetime(2024, 1, 1, tz="Asia/Shanghai"),
catchup=False,
description="每月2号给南京银行顾老师发送上个月涉农API对账单",
tags=["api", "njcb", "statement"]
) as dag:
send_statement_task = BashOperator(
task_id="send_njcb_village_statement",
bash_command="python /opt/airflow/dags/repo/dags/api/api/njcb_village_statement.py"
)
send_statement_task