fix(schedules): cron sample for schema test, lint cleanups

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-09-28 02:39:56 +08:00
1 parent 4d4c023fed
commit 5843527317
4 files changed
+4 -2

No files matched your search

@@ -42,7 +42,7 @@ export interface JobRunResult {
agentRunId?: string | null;
}
export type JobRunFn = (c: JobRunContext) => Promise<JobRunResult | undefined | void>;
export type JobRunFn = (c: JobRunContext) => Promise<JobRunResult | undefined>;
export interface ScheduledJobDef {
/** 稳定 key(表主键),如 feeds.poll */
@@ -209,6 +209,7 @@ describe.skipIf(!hasPg)("定时任务注册表(真实 PG)", () => {
defaults: { name: "锁", group: "maintain", schedule: { type: "interval", everyMs: 1 } },
run: async () => {
ran.push(name);
return {};
},
});
}