Recover from corrupt ops-cron store and tighten cron tool schemas.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-10 10:34:41 +08:00
parent b1bb0067a0
commit 25454a5c8c
4 changed files with 58 additions and 6 deletions

View file

@ -41,9 +41,9 @@ const JOB_SCHEMA = {
schedule: { type: 'object', additionalProperties: true },
createdAt: { type: 'number' },
updatedAt: { type: 'number' },
lastRunAt: {},
lastStatus: {},
nextRunAt: {},
lastRunAt: { type: ['number', 'null'] },
lastStatus: { type: ['string', 'null'] },
nextRunAt: { type: ['number', 'null'] },
},
}