提示添加
This commit is contained in:
@@ -12,7 +12,8 @@ with DAG(
|
|||||||
# 每月1日1点运行
|
# 每月1日1点运行
|
||||||
schedule_interval="0 1 1 * *",
|
schedule_interval="0 1 1 * *",
|
||||||
start_date=pendulum.datetime(2024, 12, 6, tz="Asia/Shanghai"),
|
start_date=pendulum.datetime(2024, 12, 6, tz="Asia/Shanghai"),
|
||||||
catchup=True
|
catchup=True,
|
||||||
|
description="区域房价指数定时计算"
|
||||||
) as dag:
|
) as dag:
|
||||||
t1 = BashOperator(
|
t1 = BashOperator(
|
||||||
task_id='region_price_month',
|
task_id='region_price_month',
|
||||||
|
|||||||
@@ -8,15 +8,16 @@ import pendulum
|
|||||||
from airflow import DAG
|
from airflow import DAG
|
||||||
|
|
||||||
with DAG(
|
with DAG(
|
||||||
dag_id="region_price_month_dag",
|
dag_id="seaweed_price_month_dag",
|
||||||
# 每月1日1点运行
|
# 每月1日1点运行
|
||||||
schedule_interval="0 1 1 * *",
|
schedule_interval="0 1 1 * *",
|
||||||
start_date=pendulum.datetime(2024, 12, 6, tz="Asia/Shanghai"),
|
start_date=pendulum.datetime(2024, 12, 6, tz="Asia/Shanghai"),
|
||||||
catchup=True
|
catchup=True,
|
||||||
|
description="小区房价指数定时计算"
|
||||||
) as dag:
|
) as dag:
|
||||||
t1 = BashOperator(
|
t1 = BashOperator(
|
||||||
task_id='region_price_month',
|
task_id='seaweed_price_month',
|
||||||
bash_command='python /opt/airflow/dags/repo/dags/price_exponents/region_price_month.py ',
|
bash_command='python /opt/airflow/dags/repo/dags/price_exponents/seaweed_price_month.py ',
|
||||||
)
|
)
|
||||||
t1
|
t1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user