feat: add tasks page (#692)

This commit is contained in:
Manuel
2024-07-01 18:57:40 +02:00
committed by GitHub
parent 663eb0bf5b
commit 08d571ad74
43 changed files with 668 additions and 174 deletions

View 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}`);