feat: add tasks page (#692)
This commit is contained in:
10
packages/cron-job-status/src/index.ts
Normal file
10
packages/cron-job-status/src/index.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { createSubPubChannel } from "../../redis/src/lib/channel";
|
||||
|
||||
export interface TaskStatus {
|
||||
name: string;
|
||||
status: "running" | "idle";
|
||||
lastExecutionTimestamp: string;
|
||||
lastExecutionStatus: "success" | "error" | null;
|
||||
}
|
||||
|
||||
export const createCronJobStatusChannel = (name: string) => createSubPubChannel<TaskStatus>(`cron-job-status:${name}`);
|
||||
Reference in New Issue
Block a user