Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/fixed-14478.md
Original file line number Diff line number Diff line change
@@ -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)).
4 changes: 3 additions & 1 deletion src/pkg/dashboard/contribute_ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading