fix(migration): recover the main banner progression on server restart

This commit is contained in:
Edouard Vanbelle
2026-08-02 16:19:09 +02:00
parent 07802e01f8
commit 5eec0fb36e
6 changed files with 92 additions and 24 deletions
+9 -1
View File
@@ -17,10 +17,18 @@ const JSON_HEADERS = { 'Content-Type': 'application/json' };
* `ok: true` means "dispatch reached the handler"; the handler's own
* pass/fail is in `outcome.outcome`. For `consistency_batch`, per-child
* outcomes are inside `outcome.extra.per_check`.
*
* `outcome` is absent for detached jobs (currently only
* `backend_migration`) — the endpoint returns `202 Accepted` with
* `dispatched: true` immediately and the run continues in the
* background. Progress polling shows the state; there's no synchronous
* outcome to surface.
*/
export interface TriggerResponse {
ok: boolean;
outcome: JobOutcome;
outcome?: JobOutcome;
dispatched?: boolean;
detached?: boolean;
}
/** Envelope from `POST /api/admin/jobs/{name}/cancel`. `run_id` is