mirror of
https://github.com/whyour/qinglong.git
synced 2026-11-17 15:51:07 +08:00
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.
12 lines
367 B
TypeScript
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);
|
|
}
|
|
}
|