Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add the half missing comment about it's OK to get ENOTFOUND when finding issue for a task

天舟30565167209e
diff --git a/server/task.go b/server/task.go
index febf13656f..79873b2b3c 100644
--- a/server/task.go
+++ b/server/task.go
@@ -197,7 +197,7 @@ func (s *Server) ChangeTaskStatusWithPatch(ctx context.Context, task *api.Task,
}
issue, err := s.IssueService.FindIssue(ctx, issueFind)
if err != nil {
- // Some
+ // Not all pipelines belong to an issue, so it's OK if ENOTFOUND
if bytebase.ErrorCode(err) != bytebase.ENOTFOUND {
return nil, fmt.Errorf("failed to fetch containing issue after changing the task status: %v, err: %w", task.Name, err)
}