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