Execution: reclaim the directories of Ended Tickets after a retention

This commit is contained in:
2026-11-02 01:46:33 +08:00
parent b348d69beb
commit 3bee231da6
18 changed files with 326 additions and 18 deletions
+8
View File
@@ -355,3 +355,11 @@ it('reports whether the service is alive and polling apart from whether any Trig
expect(overview(host, {}, 'v1', load, undefined, startedAt).liveness).toMatchObject({ polling: false, lastPollAt: null, pollAgeMs: null })
expect(overview(host, {}, 'v1', load).liveness).toMatchObject({ startedAt: null, uptimeMs: null, polling: false })
})
it('reports what the execution root holds for Ended Tickets apart from what any Trigger did', () => {
const host = views()
const workspace = { root: '/srv/work', afterDays: 14, directories: 5, candidates: 1, bytes: 1024, lastScanAt: at, unreadable: 0 }
expect(overview(host, {}, 'v1', load, undefined, undefined, workspace).workspace).toEqual(workspace)
// Before the first scan there is nothing to say, which the page renders as no readout rather than as zeroes.
expect(overview(host, {}, 'v1', load).workspace).toBeNull()
})