Skip to content

Push diagnostics right after a feeder is claimed#119

Merged
d4rken merged 1 commit into
devfrom
feat/diag-push-on-claim
Jun 1, 2026
Merged

Push diagnostics right after a feeder is claimed#119
d4rken merged 1 commit into
devfrom
feat/diag-push-on-claim

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented May 31, 2026

A feeder pushes its diagnostics on a 10-minute timer, so right after an owner claims a feeder on the website their dashboard could sit empty for up to ten minutes, waiting for the next push.

When remote configuration is enabled, config sync already learns from the server the moment a feeder becomes account-owned. It now records that ownership in its runtime state file and, on the transition from unowned to owned, starts a single diagnostics push so the dashboard fills in within about a minute. The push is best-effort and skipped on non-host roots and where systemctl isn't available; the diagnostics service still decides for itself whether reporting is enabled.

@d4rken d4rken added enhancement New feature or request area: config-sync labels May 31, 2026
On the first tick where the server reports the feeder account-owned, config-sync records the verdict in its runtime state file and starts one diagnostics push — so a freshly claimed feeder's dashboard shows data within ~60s, not after the next 10-min tick. Only on the unowned->owned edge; skipped under --root and when systemctl is unavailable.
@d4rken d4rken force-pushed the feat/diag-push-on-claim branch from ac8d2f3 to 9e98b6f Compare May 31, 2026 21:08
@d4rken d4rken merged commit 8f01dc4 into dev Jun 1, 2026
13 checks passed
@d4rken d4rken deleted the feat/diag-push-on-claim branch June 1, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: config-sync enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant