feat(bus): admin Pause/Resume on loopback listener#6175
Conversation
Adds pkg/bus/admin with POST /pause, POST /resume, GET /status under /_unkey/internal/bus/* and an http.Server preconfigured with conservative timeouts. Mounted on a dedicated 127.0.0.1:6061 listener in svc/api and svc/frontline (separate from pprof so the kill switch keeps working if pprof is misconfigured). Adds IsPaused() to the Bus interface so the status endpoint and tests can read pause state without going through the metric.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |

What does this PR do?
Fixes # (issue)
If there is not an issue for this, please create one first. This is used to tracking purposes and also helps us understand why this PR exists
Type of change
How should this be tested?
Checklist
Required
pnpm buildpnpm fmtmake fmton/godirectoryconsole.logsgit pull origin mainAppreciated