yokowu
|
6644bc1d4b
|
refactor: 用 Lifecycle Manager 替换 Tasker
核心改动:
- TaskUsecase: 移除 tasker 依赖,改用 lifecycle.Transition
- CreateTaskReq 临时存储到 Redis (10 分钟过期)
- InternalHostHandler: 移除 tasker 依赖
- TaskRepo: 实现 UpdateStatus 方法
完整流程:
1. TaskUsecase.Create() 存储 CreateTaskReq 到 Redis
2. VM 就绪时 TaskCreateHook 从 Redis 读取并创建 taskflow 任务
3. VMTaskHook 自动同步任务状态
|
2026-03-19 16:51:04 +08:00 |
|
yokowu
|
89ace6061c
|
feat: 注册 Lifecycle Manager 并添加必要类型定义
- pkg/register.go: 注册 Task 和 VM 的 Lifecycle Manager
- consts/notify.go: 添加 VM 相关通知事件类型
- domain/notify.go: 添加 VMStatus 字段
- domain/task.go: 添加 TaskRepo.UpdateStatus 接口
- go.mod: 更新依赖
|
2026-03-19 15:46:09 +08:00 |
|
yokowu
|
5a9c686a49
|
feat(phase5): 添加 GitIdentity/Project/Git平台集成
|
2026-03-18 19:03:43 +08:00 |
|
yokowu
|
62a25fb389
|
feat(phase4): 添加 Task/Notify/TaskSummary 模块完整实现
|
2026-03-18 18:25:32 +08:00 |
|