{"record":{"id":"ac94ef63563bf9c5","repo":"goharbor/harbor","slug":"execution-d-not-found","errorCode":null,"errorMessage":"execution %d not found","messagePattern":"execution (.+?) not found","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"src/controller/retention/controller.go","lineNumber":302,"sourceCode":"\t\t} else if num == 0 {\n\t\t\t// no candidates, mark the execution as done directly\n\t\t\tif err := r.execMgr.MarkDone(ctx, id, \"no resources for retention\"); err != nil {\n\t\t\t\tlogger.Errorf(\"failed to mark done for the execution %d: %v\", id, err)\n\t\t\t}\n\t\t}\n\t}()\n\n\treturn id, err\n}\n\n// OperateRetentionExec Operate Retention Execution\nfunc (r *defaultController) OperateRetentionExec(ctx context.Context, eid int64, action string) error {\n\te, err := r.execMgr.Get(ctx, eid)\n\tif err != nil {\n\t\treturn err\n\t}\n\tif e == nil {\n\t\treturn fmt.Errorf(\"execution %d not found\", eid)\n\t}\n\tswitch action {\n\tcase \"stop\":\n\t\treturn r.launcher.Stop(ctx, eid)\n\tdefault:\n\t\treturn fmt.Errorf(\"not support action %s\", action)\n\t}\n}\n\n// GetRetentionExec Get Retention Execution\nfunc (r *defaultController) GetRetentionExec(ctx context.Context, executionID int64) (*retention.Execution, error) {\n\te, err := r.execMgr.Get(ctx, executionID)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\treturn convertExecution(e), nil\n}","sourceCodeStart":284,"sourceCodeEnd":320,"githubUrl":"https://github.com/goharbor/harbor/blob/7b2fd08cc568955cca339afeefab27372840d936/src/controller/retention/controller.go#L284-L320","documentation":"Error \"execution %d not found\" thrown in goharbor/harbor.","triggerScenarios":"Thrown at src/controller/retention/controller.go:302 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b2fd08cc568955cca339afeefab27372840d936","analyzedAt":"2026-08-16T00:00:10.961Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}