版本修改

This commit is contained in:
王文艳
2026-07-22 16:13:44 +08:00
parent a11383312e
commit b7534064aa
4 changed files with 92 additions and 70 deletions
+3 -5
View File
@@ -27,7 +27,6 @@ def choose_task(**context):
return ['office_city_region_rent_calc', 'office_base_rent_calc']
with DAG(
dag_id="office_rent_dag",
# 每月25日1点运行
@@ -41,7 +40,7 @@ with DAG(
branch_task = BranchPythonOperator(
task_id='choose_branch',
python_callable=choose_task,
provide_context=True
# 🛡️ 已移除 provide_context=True,防止 Airflow 3.3.0 报错崩溃
)
# 任务1:城市区域租金计算
t1 = BashOperator(
@@ -52,7 +51,6 @@ with DAG(
t2 = PythonOperator(
task_id='office_base_rent_calc',
python_callable=calc,
provide_context=True
# 🛡️ 已移除 provide_context=True,防止 Airflow 3.3.0 报错崩溃
)
branch_task >> [t1, t2]
branch_task >> [t1, t2]