Skip to content

Fix dashboard container exit on API failure#4290

Draft
schmuecker wants to merge 2 commits into
hatchet-dev:mainfrom
schmuecker:codex/dashboard-api-exit-on-failure
Draft

Fix dashboard container exit on API failure#4290
schmuecker wants to merge 2 commits into
hatchet-dev:mainfrom
schmuecker:codex/dashboard-api-exit-on-failure

Conversation

@schmuecker

Copy link
Copy Markdown

Summary

  • make the dashboard entrypoint exit when the embedded hatchet-api process exits
  • shut down the sibling process when either hatchet-api or NGINX stops

Why

If hatchet-api fails during startup, for example while RabbitMQ is still refusing connections, NGINX can keep serving static dashboard assets while /api routes return 502. Because the container stays alive, docker compose restart policies do not recover the API.

Validation

  • sh -n build/package/dashboard-entrypoint.sh
  • docker run --rm nginx:alpine with fake hatchet-api exiting 42; entrypoint exits 42 and stops real NGINX
  • docker run --rm nginx:alpine with fake nginx exiting 17; entrypoint exits 17 and stops fake hatchet-api

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

@schmuecker is attempting to deploy a commit to the Hatchet Team on Vercel.

A member of the Team first needs to authorize it.

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