mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 09:10:58 +01:00
**Recover PMG connections after startup outages with context-bound auth** Proxmox Mail Gateway (PMG) connections that failed client creation during startup were permanently omitted from polling because retryFailedConnections only checked PVE and PBS clients, initPMGClients omitted offline state and scheduler-health error recording, and pmg.NewClient hardcoded context.Background() during password ticket authentication. Add pmg.NewClientWithContext (normalizing the host URL before logging HTTP warnings), synchronize PMG client installation via replacePMGClient, publish offline state and scheduler/staleness failures on startup and reconnect errors, wait for the first connectivity poll before marking PMG healthy, and include non-paused PMG instances in retryFailedConnections. **Configure valid PMG fixture host in partial-read scheduling tests** Set a valid token-auth fixture host and monitor Stop cleanup in newPartialReadPMGMonitor so partial-read scheduling tests start from a valid PMG configuration instead of counting an empty-host startup client creation failure. Contract-Neutral: Test fixture setup only; no runtime or public contract change. --- Fleet candidate `20261126T173802Z-core-runtime` from the `core-runtime` lane. Reviewed tip `a4ad4f268372ab8127dc8990168d2a1dcefcd223` on `main`. [How Pulse handles triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)