版本修改
This commit is contained in:
@@ -50,28 +50,28 @@ with DAG(
|
||||
branch_task = BranchPythonOperator(
|
||||
task_id='choose_branch',
|
||||
python_callable=choose_task,
|
||||
provide_context=True
|
||||
# 🛡️ 已安全移除 provide_context=True
|
||||
)
|
||||
|
||||
# 任务1: 写字楼出售基础价格计算
|
||||
t1 = PythonOperator(
|
||||
task_id='office_sell_base_price_calc',
|
||||
python_callable=calc,
|
||||
provide_context=True
|
||||
# 🛡️ 已安全移除 provide_context=True
|
||||
)
|
||||
|
||||
# 任务2: 无样本写字楼出售基础价格填充
|
||||
t2 = PythonOperator(
|
||||
task_id='office_no_sample_sell_base_price_calc',
|
||||
python_callable=fill_base_price,
|
||||
provide_context=True
|
||||
# 🛡️ 已安全移除 provide_context=True
|
||||
)
|
||||
|
||||
# 第二个分支任务:t2 后判断是否继续
|
||||
branch_after_office = BranchPythonOperator(
|
||||
task_id='choose_after_office',
|
||||
python_callable=choose_after_office,
|
||||
provide_context=True
|
||||
# 🛡️ 已安全移除 provide_context=True
|
||||
)
|
||||
|
||||
# 跳过标记(office 模式结束点)
|
||||
|
||||
Reference in New Issue
Block a user