mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
kvm guest support hotplug cpu mem, fix hmp monitor
This commit is contained in:
@@ -51,6 +51,14 @@ func TaskFailed(ctx context.Context, reason string) {
|
||||
}
|
||||
}
|
||||
|
||||
func TaskFailed2(ctx context.Context, reason string, params *jsonutils.JSONDict) {
|
||||
if taskId := ctx.Value(appctx.APP_CONTEXT_KEY_TASK_ID); taskId != nil {
|
||||
modules.ComputeTasks.TaskFailed3(GetComputeSession(ctx), taskId.(string), reason, params)
|
||||
} else {
|
||||
log.Errorf("Reqeuest task failed missing task id, with reason(%s)", reason)
|
||||
}
|
||||
}
|
||||
|
||||
func TaskComplete(ctx context.Context, params jsonutils.JSONObject) {
|
||||
if taskId := ctx.Value(appctx.APP_CONTEXT_KEY_TASK_ID); taskId != nil {
|
||||
modules.ComputeTasks.TaskComplete(GetComputeSession(ctx), taskId.(string), params)
|
||||
|
||||
Reference in New Issue
Block a user