From f37010de370f97ab8ea52e3483e63c1632761196 Mon Sep 17 00:00:00 2001 From: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> Date: Mon, 26 Oct 2026 22:24:15 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(contribute-ws):=20log=20expe?= =?UTF-8?q?cted=20resume-without-lease=20rejection=20at=20info?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: scanner <280983584+hivecommons-hive[bot]@users.noreply.github.com> --- changelog.d/fixed-14478.md | 1 + src/pkg/dashboard/contribute_ws.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog.d/fixed-14478.md 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,