mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +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
@@ -37,7 +37,7 @@ async function packageFixture(t) {
|
||||
const lock = 'lockfileVersion: 6.0\n';
|
||||
await fs.writeFile(path.join(root, 'pnpm-lock.yaml'), lock);
|
||||
const files = {};
|
||||
for (const name of ['build/app.js', 'build/token.js', 'build/bootstrap/upgradeProbe.js', 'dist/index.html', 'build/app.js.map', 'dist/app.js.gz']) {
|
||||
for (const name of ['build/app.js', 'build/token.js', 'build/shared/managedExit.cjs', 'build/bootstrap/upgradeProbe.js', 'dist/index.html', 'build/app.js.map', 'dist/app.js.gz']) {
|
||||
const bytes = name.endsWith('.html') ? '<html>pack fixture</html>' : '{}';
|
||||
await fs.mkdir(path.dirname(path.join(root, 'static', name)), { recursive: true });
|
||||
await fs.writeFile(path.join(root, 'static', name), bytes);
|
||||
@@ -69,6 +69,7 @@ test('real npm pack excludes local state and its installed lifecycle restores ve
|
||||
checkPackedFiles(archive.files);
|
||||
const names = new Set(archive.files.map((file) => file.path));
|
||||
assert.ok(names.has('shell/upgrade-lock.yaml'));
|
||||
assert.ok(names.has('shell/subscription-files.py'));
|
||||
for (const name of Object.keys(files)) assert.ok(names.has('static/' + name));
|
||||
await assert.rejects(fs.access(path.join(root, 'shell/upgrade-lock.yaml')), { code: 'ENOENT' });
|
||||
const prefix = path.join(temp, 'installed');
|
||||
|
||||
Reference in new issue
Block a user