add_dependency
Add a task dependency: the downstream task waits until the upstream completes. Automatic cycle detection and waiting state assignment.
Instructions
添加任务依赖关系。下游任务必须等上游任务完成后才能开始。自动进行环检测。添加后下游任务自动进入等待状态。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upstream_id | Yes | 上游任务 ID(需先完成) | |
| downstream_id | Yes | 下游任务 ID(依赖上游完成后才能开始) | |
| dep_type | No | 依赖类型,默认 finish_to_start | finish_to_start |