fix: keep background jobs alive

Add a background job orchestrator that restores profile jobs from saved credentials,
keeps pickup and store-watch schedules alive without UI logins, and exposes job
status via health/admin endpoints.
This commit is contained in:
2026-06-25 12:40:28 +02:00
parent 881b3d8d86
commit 02dfea8562
5 changed files with 308 additions and 6 deletions

View File

@@ -48,6 +48,15 @@ class SessionStore {
return session;
}
getByProfile(profileId) {
const key = profileId ? String(profileId) : null;
if (!key) {
return null;
}
const id = this.profileIndex.get(key);
return id ? this.get(id) : null;
}
update(id, patch) {
const session = this.get(id);
if (!session) {