Skip to content

将 restart 调用从异步改为同步模式#473

Merged
yokowu merged 3 commits intomainfrom
feat/restart-sync
Apr 10, 2026
Merged

将 restart 调用从异步改为同步模式#473
yokowu merged 3 commits intomainfrom
feat/restart-sync

Conversation

@yokowu
Copy link
Copy Markdown
Collaborator

@yokowu yokowu commented Apr 8, 2026

Summary

  • TaskManager.Restart 接口从 error 改为 (*RestartTaskResp, error)
  • handleControlCall 中 restart 合入标准 switch-case,复用 call-response 返回逻辑
  • 更新 Swagger 注释

yokowu and others added 2 commits April 10, 2026 20:46
将 TaskManager.Restart 的返回值从 error 改为 (*RestartTaskResp, error),
与 taskflow 侧的同步响应对齐。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
将 restart 从 fire-and-forget 模式改为标准 switch-case 分支,
复用已有的 call-response WebSocket 返回逻辑,前端可获得同步响应。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@yokowu yokowu force-pushed the feat/restart-sync branch from 69080fc to 6525cbb Compare April 10, 2026 12:46
@yokowu yokowu force-pushed the feat/restart-sync branch from 6525cbb to 62cf338 Compare April 10, 2026 13:03
@yokowu yokowu merged commit a0b1ddd into main Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant