Repository navigation
feat(workflow-run): 实现执行记录 CRUD 服务与 API - #176
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
xiaocheny214
requested review from
huyanxius,
johnnyzhang-eng,
minorcell,
nighca and
xyh202131
August 10, 2026 03:41
huyanxius
previously approved these changes
Aug 10, 2026
Collaborator
|
等等,发现个问题 |
huyanxius
reviewed
Aug 10, 2026
xiaocheny214
force-pushed
the
feat/workflow-run
branch
from
August 10, 2026 06:13
9ad72d5 to
ea24946
Compare
Collaborator
|
没问题,可以合并 |
nighca
approved these changes
Aug 10, 2026
huyanxius
approved these changes
Aug 10, 2026
This was referenced Aug 10, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
实现工作流执行记录(WorkflowRun)的完整 CRUD,为工作流节点编排和前端画布提供持久化层。
包含内容
模型层(server/workflow_run/model.py)
windup_workflow_run表)nodes字段:JSONB(Postgres)/ JSON(SQLite),前端自定义结构,后端不校验status字段:active/soft_deletedversion字段:每次更新自增,支持乐观并发服务层(server/workflow_run/service.py)
SqlAlchemyWorkflowRunService:实现WorkflowRunService接口create_run/get_run/list_runs(分页) /update_run/delete_run(软删除)API 层(web/api/workflow_run.py)
POST /workflow-runs— 创建GET /workflow-runs?project_id=...— 分页列表(排除软删除)GET /workflow-runs/{id}— 详情PATCH /workflow-runs/{id}— 全量更新 nodes / statusDELETE /workflow-runs/{id}— 软删除路由注册(bootstrap/app.py)
workflow_run_routerWorkflowRunmodel 触发Base.metadata注册,启动时自动建表测试(17 用例全通过)
关联