You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 276af69
Browse filesBrowse the repository at this point in the historyBrowse files
ADFA-5333 fix(dashboard): harden re-own, auto-drain gate, and cancel
Review follow-ups on the background dashboard update:
- Re-own can no longer start an unintended rebuild. DashboardRebuildService gains
ACTION_ATTACH / attach(): the card re-owns an already-running rebuild by polling
to completion, never POSTing /rebuild, so a rebuild that finishes in the gap
between the status check and re-attach can't trigger a fresh run.
- The reverse gate now covers auto-drains, not just user taps. ZimProvisioner and
BooksProvisioner drain() and KolibriProvisioner canDrainNow() defer while
DashboardRebuildService.isRunning(), so a banked wishlist can't auto-start a live
download mid-rebuild (which the dash-node restart would disrupt).
- Cancel is hardened on both ends. rebuild-dashboard.sh traps INT/TERM to on_cancel,
which sets the status to idle before cleanup, so a canceled build never leaves a
wedged "running" (promote stays signal-proof). The cancel endpoint verifies the
recorded pid is actually rebuild-dashboard.sh (via
0 commit comments