版本修改
This commit is contained in:
@@ -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]
|
||||
Reference in New Issue
Block a user