mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-02 10:09:02 +01:00
Read PBS job run status from the admin endpoints (#3782)
Read PBS job run status from the admin endpoints
Every PBS prune, verify and sync job showed as "not run" in the Backups
servers table, even when PBS ran it successfully that morning.
GetJobHealthEvidence read configured jobs from /config/sync,
/config/verify and /config/prune. On a real PBS those return schedules
and retention only; last-run-state, last-run-upid, last-run-endtime and
next-run come only from /admin/sync, /admin/verify and /admin/prune. The
test fixture served run fields from /config, so the gap never showed.
Jobs are now read from /admin/{family}, falling back to /config/{family}
only when the admin endpoint is not found. A permission or other error
on
/admin stays partial evidence rather than quietly degrading to
schedule-only facts. Against a real PBS 3, eight prune and verify jobs
went from no run state to OK, each matched to its task. The fixture now
uses /admin paths, and a PBS-shaped test fails against the old reads.
This commit is contained in:
@@ -120,6 +120,22 @@ admission, cancellation, runtime/client replacement and old-worker completion.
|
||||
Source-bound desktop/narrow Backups proof consumes produced partial/recovery
|
||||
frames. This is truthful collection, not original frozen-guest recovery.
|
||||
|
||||
### PBS job run status comes from the admin endpoints (2 November 2026)
|
||||
|
||||
`pkg/pbs.Client.GetJobHealthEvidence` reads configured sync, verify and prune
|
||||
jobs from `/admin/sync`, `/admin/verify` and `/admin/prune`. Those return each
|
||||
job with `last-run-state`, `last-run-upid`, `last-run-endtime` and
|
||||
`next-run`; `/config/{family}` returns the same jobs with none of them, so
|
||||
reading it made every successful job report `no-run-observed` and the Backups
|
||||
servers table show "Prune not run" or "Verify not run". `/config/{family}` is
|
||||
read only when `/admin/{family}` is not found; a permission or other error on
|
||||
`/admin` stays partial evidence for that path rather than silently degrading
|
||||
to schedule-only facts. Garbage collection already read
|
||||
`/admin/datastore/{store}/gc`. Against a real PBS 3 the change took eight
|
||||
configured prune and verify jobs from config-only with no run state to
|
||||
`last-run-state` OK matched to their tasks; `TestClient_GetJobHealthEvidence_ReadsRunStatusFromAdminEndpoints`
|
||||
fails against the old reads.
|
||||
|
||||
### Docker image replacements invalidate older tag comparisons
|
||||
|
||||
Successful tag/platform results are cached for six hours. If an unseen local
|
||||
|
||||
Reference in New Issue
Block a user