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
fix(apps): restart a crashed app manager and avoid a false stale catalog after staging #655
docker/production/entrypoint.sh:132-136 starts the app manager once and only logs when it exits. After a crash, apps stay down until the container restarts.
core/src/app_install/browse.rs:68-71 takes now before a catalog fetch of up to 120 s. If staging stores a newer checkpoint during the fetch, previous(now) fails (core/src/app_install/catalog.rs:118,125-126) and finish_refresh marks the catalog Stale for 60 s (core/src/app_manager/catalog.rs:360-369). Installs keep working from the cached entries, but the catalog shows a false error.
Proposal
Restart the app manager with backoff, the same way other supervised processes are handled, and surface repeated crashes.
Read now after taking the lock in refresh_in_background, or retry once when the checkpoint moved during the fetch.
Acceptance
Test: killing the app manager restarts it and running apps come back.
Test: a refresh that overlaps staging does not mark the catalog stale.
Activity