@queuedash/api
Version:
A stunning, sleek dashboard for Bull, BullMQ, and Bee-Queue
52 lines • 1.36 kB
TypeScript
import Bull from "bull";
import BullMQ from "bullmq";
import BeeQueue from "bee-queue";
export declare const NUM_OF_JOBS = 20;
export declare const NUM_OF_SCHEDULERS = 3;
export declare const NUM_OF_COMPLETED_JOBS: number;
export declare const NUM_OF_FAILED_JOBS: number;
export declare const sleep: (t: number) => Promise<unknown>;
type QueueType = "bull" | "bullmq" | "bee";
export declare const type: QueueType;
export declare const initRedisInstance: () => Promise<{
ctx: {
queues: {
queue: Bull.Queue<any>;
displayName: string;
type: "bull";
}[];
};
firstQueue: {
queue: Bull.Queue<any>;
displayName: string;
type: "bull";
};
} | {
ctx: {
queues: {
queue: BullMQ.Queue<any, any, string, any, any, string>;
displayName: string;
type: "bullmq";
}[];
};
firstQueue: {
queue: BullMQ.Queue<any, any, string, any, any, string>;
displayName: string;
type: "bullmq";
};
} | {
ctx: {
queues: {
queue: BeeQueue<any>;
displayName: string;
type: "bee";
}[];
};
firstQueue: {
queue: BeeQueue<any>;
displayName: string;
type: "bee";
};
}>;
export {};
//# sourceMappingURL=test.utils.d.ts.map