mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
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:
1 parent
3b6a873520
commit
8a9e70e90b
166 files changed
+18942
-1800
No files matched your search
@@ -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);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user