API-AI-029:Runtime 拉取 pending job 接口 #178

Open
opened 2026-06-10 21:03:44 +08:00 by wangdl · 0 comments
Owner

目标

提供 Runtime 拉取待执行 job 的内部接口。

接口

POST /internal/runtime/jobs/poll

请求字段

  • runtimeInstanceId
  • supportedJobTypes
  • limit
  • capabilities

响应字段

jobs: [
  id
  jobType
  targetType
  targetId
  priority
  snapshotId
  promptVersion
  outputSchemaVersion
]

验收标准

  1. 只返回 pending job。
  2. 支持 limit。
  3. 支持 supportedJobTypes 过滤。
  4. 不返回用户隐私详情。
  5. 需要 service token。
  6. 提供测试。
## 目标 提供 Runtime 拉取待执行 job 的内部接口。 ## 接口 ``` POST /internal/runtime/jobs/poll ``` ## 请求字段 - runtimeInstanceId - supportedJobTypes - limit - capabilities ## 响应字段 ``` jobs: [ id jobType targetType targetId priority snapshotId promptVersion outputSchemaVersion ] ``` ## 验收标准 1. 只返回 pending job。 2. 支持 limit。 3. 支持 supportedJobTypes 过滤。 4. 不返回用户隐私详情。 5. 需要 service token。 6. 提供测试。
wangdl added this to the M-API-AI-RUNTIME:API AI Runtime 调度与落库 milestone 2026-06-10 21:03:44 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: wangdl/api-server#178
No description provided.