根因:develop agent 产出空交付件 → QC 驳回(qc_reject)直接 qc_review→submitted, 不递增 retry_count、不检查 task_max_retry 上限 → 无限重做循环;3 个 running 任务 占满 max_concurrent_agents=3 全局名额 → agent poller avail=0 不再派发 6 个 submitted 任务 → 任务整体饿死,只有手动 start_agents(绕过并发限制)才走一步。 修复: 1. task_capability.py 新增 _reject_with_retry_limit:退回时 retry_count+1,超 task_max_retry(默认3)则转 failed(释放并发名额,交 failed poller 报故障给人工)。 qc_reject_task / reject_task 统一走它。 2. agent_loop.py qc_review_run 驳回时感知超限转 failed,跳过建 qc_reject 问题 (failed poller 会报 fault_report),返回 failed 而非 rejected。
pipeline_service
产线执行引擎 —— 任务调度、步骤执行、人工任务交互、LLM 桥接。
功能
- 任务执行:DAG 步骤调度与状态机
- 人工任务:审批/输入等待与交互
- LLM 桥接:统一 LLM 调用接口
- Agent Loop:AI Agent 多轮任务执行
- 意图分类:自然语言意图识别
- 产物管理:步骤输入输出存储
数据表
| 表 | 说明 |
|---|---|
| pipeline_tasks | 任务实例 |
| pipeline_task_steps | 步骤执行记录 |
| pipeline_artifacts | 步骤产物 |
| pipeline_human_tasks | 人工任务 |
| pipeline_step_types | 步骤类型注册 |
安装
cd pkgs/pipeline-service && pip install .
核心模块
| 文件 | 职责 |
|---|---|
executor.py |
任务/步骤调度引擎 |
storage.py |
数据库读写 |
llm_bridge.py |
LLM API 调用 |
agent_loop.py |
AI Agent 多轮执行 |
human.py |
人工任务处理 |
intent_classifier.py |
意图识别 |
state.py |
状态机 |
step_registry.py |
步骤类型注册表 |
Description
Languages
Python
99.5%
Shell
0.5%