Skip to content

fix(backend): 统一 VM 回调到生命周期#509

Merged
yokowu merged 1 commit intomainfrom
fix/backend-lifecycle-vm-failed-20260416
Apr 16, 2026
Merged

fix(backend): 统一 VM 回调到生命周期#509
yokowu merged 1 commit intomainfrom
fix/backend-lifecycle-vm-failed-20260416

Conversation

@yokowu
Copy link
Copy Markdown
Collaborator

@yokowu yokowu commented Apr 16, 2026

Summary

  • add a VM lifecycle hook that maps VMStateRunning and VMStateFailed into task lifecycle transitions
  • update the internal host callback handler to drive VM state through vmLifecycle for both vm-ready and failed conditions
  • add a lifecycle test covering VMStateFailed -> TaskStatusError

Test Plan

  • go test ./pkg/lifecycle ./biz/host/handler/v1

@yokowu yokowu merged commit c33c010 into main Apr 16, 2026
@yokowu yokowu deleted the fix/backend-lifecycle-vm-failed-20260416 branch April 16, 2026 07:34
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