From 456fd66319197076944966ec1586af1101ce6541 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Mon, 8 May 2023 17:21:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E5=85=A5=E5=BA=93=E5=AE=9A=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/dag_comm_add.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 dags/business/dag_comm_add.py diff --git a/dags/business/dag_comm_add.py b/dags/business/dag_comm_add.py new file mode 100644 index 0000000..425c8ac --- /dev/null +++ b/dags/business/dag_comm_add.py @@ -0,0 +1,16 @@ +from airflow.operators.bash import BashOperator +import pendulum +from airflow import DAG + +with DAG( + dag_id="comm_add_dag", + schedule_interval=None, + start_date=pendulum.datetime(2023, 5, 8, tz="Asia/Shanghai"), + catchup=True, + description="小区自动化入库" +) as dag: + t1 = BashOperator( + task_id='comm_add_dag', + bash_command='docker pull 192.168.0.19:9012/comm-add:1.0.1', + ) + t1 \ No newline at end of file