新增新房变二手房脚本

This commit is contained in:
shenjian@fangjia.com
2023-02-10 17:29:40 +08:00
parent f435f5c5b0
commit daf0eac325
2 changed files with 87 additions and 0 deletions
@@ -0,0 +1,17 @@
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
"change_new_to_old_seaweed_dag",
# 每周六1点运行
schedule_interval="0 1 * * 6",
start_date=pendulum.datetime(2023, 2, 10, tz="Asia/Shanghai"),
catchup=True,
description="新房变二手房定时脚本"
) as dag:
t1 = BashOperator(
task_id='change_new_to_old_seaweed_dag',
bash_command='python /opt/airflow/dags/repo/dags/business/business/change_new_to_old_seaweed.py',
)
t1