取消转交的协助分支阻塞: transfer_task移除_check_children_done,仅end_task保留
This commit is contained in:
@ -551,9 +551,6 @@ async def transfer_task(
|
|||||||
"""
|
"""
|
||||||
task = await _get_task_or_404(db, task_id)
|
task = await _get_task_or_404(db, task_id)
|
||||||
|
|
||||||
# 校验:必须等待所有协助分支完成
|
|
||||||
await _check_children_done(db, task_id)
|
|
||||||
|
|
||||||
# 校验:不能重复完成
|
# 校验:不能重复完成
|
||||||
if task.status == TASK_STATUS_COMPLETED:
|
if task.status == TASK_STATUS_COMPLETED:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
|
|||||||
Reference in New Issue
Block a user