feat(schedule): 新增平台任务参数契约与动态选项支持
This commit is contained in:
1 parent
2ce1aca023
commit
8b5b0b49bf
76 files changed
+7103
-1203
No files matched your search
+12
-1
@@ -56,12 +56,23 @@
|
||||
| --- | --- | --- |
|
||||
| 发货通知技术手册 | 已文档化 | 见 [docs/features/shipping-notice/technical.md](features/shipping-notice/technical.md) |
|
||||
| 发货通知业务说明 | 已文档化 | 见 [docs/features/shipping-notice/business.md](features/shipping-notice/business.md) |
|
||||
| 库存 RPA 源 JSON 配置 | 已实现 | `backend/config/shipping_inventory_sources.json`,新增 Warehouse 只改 JSON |
|
||||
| 库存 RPA 源 YAML 配置 | 已实现 | `backend/config/shipping_inventory_sources.yaml`,新增 Warehouse 只改 YAML |
|
||||
| 库存快照 TTL 复用 | 已实现 | `inventory_snapshot_store`,按需任务优先复用未过期快照 |
|
||||
| 库存 RPA 批量导出(DSV/Crane 一次登录) | 已实现 | `inventory_export_batch` trigger + worker + `/rpa/inventory-batch-ready` |
|
||||
| 库存每日定时导出排程 | 已实现 | `schedule_type=platform_job` + `platform_api_path=shipping-inventory-rpa`,cron 建议 `0 3 * * *` |
|
||||
| 产品原型 | 已文档化 | 见 [docs/prototype/shipping_notice_agent_prototype.md](prototype/shipping_notice_agent_prototype.md) |
|
||||
|
||||
### 排程平台任务契约中心(schedule)
|
||||
|
||||
| 功能项 | 状态 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| 平台任务注册表升级 | 已实现 | `job_registry.PlatformJobDefinition` 补 `category / params_schema / defaults`,注册表即任务契约中心 |
|
||||
| 任务定义接口 | 已实现 | `GET /api/admin/platform-tasks/definitions` 下发完整契约(含 params_schema) |
|
||||
| 动态选项接口 | 已实现 | `GET /api/admin/platform-tasks/options?source=...`;已支持 `agent_apps`、`shipping_inventory_sources` |
|
||||
| job_params 统一校验 | 已实现 | `job_params.validate_task_params`:保存与执行前各校验一次;未声明字段拒绝,`_advanced` 例外透传 |
|
||||
| 结构化参数存储 | 已实现 | `schedule_tasks.job_params`(JSON),迁移 `d1e2f3a4b5c6`;FAQ/RPA handler 优先读取并回退旧字段 |
|
||||
| 前端通用参数表单 | 已实现 | `DynamicTaskParamsForm.vue` 按 schema 渲染 + 折叠高级 JSON,编辑弹窗移除任务级 v-if |
|
||||
|
||||
### Agent 应用管理(platform)
|
||||
|
||||
| 功能项 | 状态 | 说明 |
|
||||
|
||||
Reference in new issue
Block a user