Skip to content

fix(updates): retry lost worker update failure reports - #956

Merged
nixuuu merged 1 commit into
devfrom
fix/update-process-stuck
Nov 18, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/update-process-stuck

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 18, 2026

Copy link
Copy Markdown
Member

Change

When a gateway restart interrupts a worker binary download, it can also interrupt the worker’s failure report. The gateway then keeps showing the last download state and reissues the same command, which the worker has already handled.

Keep an unacknowledged failure report in memory and resend it on the update channel with the original command ID. The update center can show the failure and let the owner retry the installation. Add gRPC regression coverage and document the recovery behavior.

Related: #28

Verification

  • bun run check:tmp ./tests/integration/updates.test.ts passed all 20 tests. The regression test rejects the first failure report and verifies delivery without another installation attempt.
  • bun run --filter '@canopy/worker' typecheck, scoped lint and formatting, and git diff --check passed.
  • GitHub CI covers the full repository checks.

@nixuuu
nixuuu enabled auto-merge (squash) November 18, 2026 10:36
@nixuuu
nixuuu merged commit e0181d5 into dev Nov 18, 2026
15 checks passed
@nixuuu
nixuuu deleted the fix/update-process-stuck branch November 18, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant