Skip to content

feat(host): 增加回收态虚拟机回收补偿逻辑#522

Merged
yokowu merged 3 commits intomainfrom
feat/backend-vm-recycle-check-token-20260416
Apr 17, 2026
Merged

feat(host): 增加回收态虚拟机回收补偿逻辑#522
yokowu merged 3 commits intomainfrom
feat/backend-vm-recycle-check-token-20260416

Conversation

@yokowu
Copy link
Copy Markdown
Collaborator

@yokowu yokowu commented Apr 17, 2026

Summary

  • CheckToken 遇到 is_recycled=true 的虚拟机时拒绝放行,并按 vm_id 限流异步补发 delete
  • agent 鉴权的 DB fallback 放开软删可见查询,软删且已回收的虚拟机仍会走补删逻辑
  • 手动删除虚拟机时在软删前补写 is_recycled=true,并补充 repo 集成测试

Test Plan

  • go test ./biz/host/handler/v1 ./biz/host/repo -v
  • go test ./biz/host/... ./biz/task/... ./pkg/lifecycle/... -run '^$'

@yokowu yokowu merged commit f9ebfcb into main Apr 17, 2026
@yokowu yokowu deleted the feat/backend-vm-recycle-check-token-20260416 branch April 17, 2026 12:25
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