diff --git a/changelog.d/fixed-14478.md b/changelog.d/fixed-14478.md new file mode 100644 index 0000000000..95e0bca2f2 --- /dev/null +++ b/changelog.d/fixed-14478.md @@ -0,0 +1 @@ +- A relay resuming a task the hub holds no lease for (e.g. after a hub restart or lease expiry) is still told to re-ready, but the rejection is no longer logged as a repeated warning ([#14478](https://github.com/hivecommons/hive/issues/14478)). diff --git a/src/pkg/dashboard/contribute_ws.go b/src/pkg/dashboard/contribute_ws.go index ac0a16d475..5690de07ae 100644 --- a/src/pkg/dashboard/contribute_ws.go +++ b/src/pkg/dashboard/contribute_ws.go @@ -3552,7 +3552,9 @@ func (s *wsSession) handleTaskProgress(msg WSMessage) { lease := h.lookupLease(identity, msg.TaskID, canonRepo, msg.Number, msg.TaskGen, time.Now()) if lease == nil { rejectStage := h.leaseStageForDecision(identity, msg.TaskID) - h.logger.Warn("[contribute-ws] task_progress resume rejected: no matching server-issued lease", + // Expected outcome after a hub restart or lease expiry: the relay is told to + // re-ready via task_revoke below, so this is not an error. + h.logger.Info("[contribute-ws] task_progress resume rejected: no matching server-issued lease", "username", s.contributor.profile.GitHubUsername, "task", msg.TaskID, "repo", canonRepo,