feat: harden cron execution recovery and expose scheduling diagnostics

Reconcile scheduled and system cron triggers, isolate concurrent executions and retain verifiable exit statistics across restarts. Add paged task history, log and script browsing, dashboard timing details and regression coverage.
This commit is contained in:
whyour committed 2026-11-17 01:01:57 +08:00
1 parent 3b6a873520
commit 8a9e70e90b
166 files changed
+18942 -1800

No files matched your search

+11
View File
@@ -150,3 +150,14 @@ test('healthy bootstrap continues loading system information', async () => {
await new Promise(setImmediate);
assert.deepEqual(events, ['system', ['loading', false]]);
});
test('retryable panel reads retain their route on gateway failures and still enforce login expiry', async () => {
for (const [status, retryInPlace, expected] of [[502, true, []], [504, true, []],
[502, false, ['/error']], [401, true, ['/login']]]) {
const {request, pushes} = fixture('/crontab');
await assert.rejects(request.get('/api/crons/1/triggers', {retryInPlace, adapter: async config => {
throw new axios.AxiosError('failed', 'ERR_BAD_RESPONSE', config, null, {status, config, data: {}});
}}));
assert.deepEqual(pushes, expected);
}
});