Skip to content

fix(gateway): finish update handoff before serving work - #1260

Merged
nixuuu merged 1 commit into
devfrom
fix/gateway-update-handoff
Nov 25, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/gateway-update-handoff

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 25, 2026

Copy link
Copy Markdown
Member

Problem

During the upgrade from 0.9.0-nightly.1 to 0.10.0-nightly.1, the new gateway started serving at 08:07:18 UTC and announced the supervisor handoff one second later. The handoff completed at 08:14:39 UTC. A queued turn started during that interval. The logs identify the shutdown interval but lack timing for individual cleanup steps.

Changes

  • Pause new turn admission and dispatch as soon as the gateway accepts an update. Keep pending work in the durable queues and resume it after restart or update failure.
  • Have the first process of the new release confirm its listeners and transfer supervision before serving client or worker RPCs or starting background jobs. Preserve rollback and the fallback for supervisors that do not request a handoff.
  • Log any shutdown step still running after five seconds and record its elapsed time once settled.

Verification

  • 51 tests passed locally with check:tmp, including the compiled gateway handoff, the durable queue regression, and the live gateway relocation tests.
  • Gateway and integration typechecks, lint on edited files, and the diff check passed locally. GitHub CI runs the full gate.

Fixes: #28

@nixuuu
nixuuu enabled auto-merge (squash) November 25, 2026 08:32
@nixuuu
nixuuu merged commit a3b871b into dev Nov 25, 2026
20 checks passed
@nixuuu
nixuuu deleted the fix/gateway-update-handoff branch November 25, 2026 08:41
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