mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
perf(cron): share global concurrency budget and streamline execution
Share durable permits across manual, scheduled and recovered runs, prioritize short ready tasks with aging, and record global queue occupancy. Reduce launch, log polling, dashboard and SQLite overhead while preserving transactional receipts, cancellation, recovery and script hook compatibility. Keep ordinary CRUD in ORM and bound SQL on measured execution hot paths. Fix supervisor descendant tracking, asynchronous log draining, concurrent log directory creation, Linux fallback launches and snapshot clock rollback. Include regression coverage, SQL audits and evolution/review documentation. Validation: five review rounds; local full suite 1478 passed, 28 platform skips; dev suites 415 passed, no failures/skips; backend types and formatting passed.
This commit is contained in:
1 parent
cddabbaf0e
commit
2f01f756d7
74 files changed
+6891
-837
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import dayjs from 'dayjs';
|
||||
import { QueryTypes, Sequelize, Transaction } from 'sequelize';
|
||||
|
||||
// This per-exit claim stays bound SQL; its affected-row count gates the increment.
|
||||
// Hold the receipt claim and the daily increment in the same write transaction.
|
||||
export async function recordCronResult(
|
||||
database: Sequelize,
|
||||
|
||||
Reference in new issue
Block a user