Skip to content

fix: run hydrated queue after daemon restart#82

Merged
MarcStdt merged 1 commit into
masterfrom
fix/kubernetes-rehydrated-job-watch
Jun 3, 2026
Merged

fix: run hydrated queue after daemon restart#82
MarcStdt merged 1 commit into
masterfrom
fix/kubernetes-rehydrated-job-watch

Conversation

@MarcStdt

@MarcStdt MarcStdt commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary\n- trigger the runtime queue after hydration restores persisted procedure state\n- cover the production startup ordering where RuntimeSupervisor starts the session before Hydrate populates the queue\n\n## Why\nAfter daemon restart, a restart-mode command with a running Kubernetes job could remain in procedure state as running without reattaching the queue worker. If the rehydrated coldstarter job later completed, no waiter advanced the procedure to done or started the next procedure.\n\n## Tests\n- go test ./apps/druid/core/services -run 'TestRuntimeSupervisorStartRunsHydratedRestartCommand|TestRuntimeSupervisorStartHydratesRunningScroll|TestRuntimeSessionHydratePreservesProcedureStateWhenReattachingRunningRestart'\n- go test ./apps/druid/core/services ./internal/runtime/kubernetes ./internal/runtime/docker ./internal/core/services\n- go test ./...\n- git diff --check

@druid-infra

Copy link
Copy Markdown
Contributor
Error: This repo is not allowlisted for Atlantis.

@MarcStdt MarcStdt merged commit 71cb7ef into master Jun 3, 2026
10 checks passed
@MarcStdt MarcStdt deleted the fix/kubernetes-rehydrated-job-watch branch June 3, 2026 23:06
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.

2 participants