- 去掉独立 aiohttp 服务器,改为标准模块(load_pipeline_service) - 存储从文件系统改 MySQL(sqlor) - 新增 3 张数据表:pipeline_tasks/task_steps/artifacts - 多租户隔离(tenant_id) - 通用 DAG 调度引擎(读 pipeline_steps 表,不硬编码业务) - 可插拔步骤处理器(register_handler by step_type) - artifact 版本管理 + 级联重跑 - init/data.json 标准 appcodes 格式 - 完整 README 文档
28 lines
1.3 KiB
JSON
28 lines
1.3 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "pipeline_artifacts",
|
|
"title": "步骤产物表",
|
|
"primary": ["id"],
|
|
"catelog": "entity"
|
|
}
|
|
],
|
|
"fields": [
|
|
{"name": "id", "title": "主键ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "task_id", "title": "任务ID", "type": "str", "length": 32, "nullable": "no"},
|
|
{"name": "version", "title": "版本号", "type": "int", "nullable": "no", "default": "1"},
|
|
{"name": "step_name", "title": "步骤名称", "type": "str", "length": 64, "nullable": "no"},
|
|
{"name": "io_type", "title": "产物类型(input/output)", "type": "str", "length": 16, "nullable": "no"},
|
|
{"name": "data", "title": "产物数据(JSON)", "type": "longtext"},
|
|
{"name": "saved_at", "title": "保存时间", "type": "timestamp", "nullable": "no"}
|
|
],
|
|
"indexes": [
|
|
{"name": "idx_pa_task_ver", "idxtype": "index", "idxfields": ["task_id", "version"]},
|
|
{"name": "idx_pa_step", "idxtype": "index", "idxfields": ["step_name"]},
|
|
{"name": "idx_pa_lookup", "idxtype": "unique", "idxfields": ["task_id", "version", "step_name", "io_type"]}
|
|
],
|
|
"codes": [
|
|
{"field": "io_type", "table": "appcodes_kv", "valuefield": "k", "textfield": "v", "cond": "parentid='io_type'"}
|
|
]
|
|
}
|