Files
qinglong/back/shared/errors.ts
T
whyour 8a9e70e90b 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.
2026-11-17 01:01:57 +08:00

12 lines
367 B
TypeScript

// Keep error formatting independent of database, HTTP and gRPC dependencies.
export function errStack(error: unknown): string {
return error instanceof Error && error.stack ? error.stack : String(error);
}
export class PendingCronInstall extends Error {
readonly status = 503;
constructor(readonly cronId: number, message: string) {
super(message);
}
}