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
@@ -207,6 +207,9 @@ test('HTTP authentication protects init, scopes, expired sessions and config sec
|
||||
router.post('/logs/download', (_req, res) =>
|
||||
res.json({ code: 200, data: 'downloaded' }),
|
||||
);
|
||||
router.post('/logs/entries/check', (_req, res) =>
|
||||
res.json({ code: 200, current: true }),
|
||||
);
|
||||
router.get('/system', (_req, res) => res.json({ code: 200 }));
|
||||
router.put('/system/notify', (_req, res) => res.json({ code: 200 }));
|
||||
router.put('/system/auth/reset', (_req, res) => {
|
||||
@@ -389,6 +392,15 @@ test('HTTP authentication protects init, scopes, expired sessions and config sec
|
||||
.body.data,
|
||||
'downloaded',
|
||||
);
|
||||
for (const [namespace, ownToken, otherToken] of [
|
||||
['scripts', 'script-read-app', 'logs:read-app'],
|
||||
['logs', 'logs:read-app', 'script-read-app'],
|
||||
]) {
|
||||
const url = `${prefix}/${namespace}/entries/check`;
|
||||
const versions = [['absent-directory', null]];
|
||||
assert.equal((await request(url, ownToken, 'POST', versions)).body.current, true);
|
||||
assert.equal((await request(url, otherToken, 'POST', versions)).status, 401);
|
||||
}
|
||||
}
|
||||
const importedWithHead = await fetch(
|
||||
`http://127.0.0.1:${server.address().port}/open/crons/import`,
|
||||
|
||||
Reference in new issue
Block a user