v0.15.5: Fix startup hub report — Push() returns real errors, startup retries 3x with 15s delay
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
## Changelog
|
||||
|
||||
### What was just completed (2026-02-19 session 55)
|
||||
- **v0.15.5 — Fix startup hub report silently failing:**
|
||||
|
||||
`Push()` now returns actual errors instead of always `nil`. Previously, push failures were logged internally but the caller could never detect them, leading to a misleading `[INFO] Startup hub report sent` log even when the push actually failed (e.g., hub returning HTTP 503 during simultaneous deployment). Removed the "Never returns error to caller" behavior: marshal error returns a wrapped error, and after 3 failed retries the error is returned to the caller (the internal `[WARN]` log before `return nil` is gone).
|
||||
|
||||
Startup hub push now retries 3 times with 15-second delays between outer attempts, giving the hub time to come up when both are deployed together. Each outer attempt uses `Push()`'s own internal 3-retry logic (5s backoff), so the hub gets up to ~40s total to become ready. If all 3 outer attempts fail, logs a clear warning with the next scheduled push interval.
|
||||
|
||||
**Files modified (2):** `internal/report/pusher.go`, `cmd/controller/main.go`
|
||||
|
||||
### What was just completed (2026-02-19 session 54)
|
||||
- **v0.15.4 (controller) + hub v0.1.6 — Hub reporting improvements:**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user