@queuedash/api
Version:
A stunning, sleek dashboard for Bull, BullMQ, and Bee-Queue
117 lines • 3.28 kB
TypeScript
import Bull from "bull";
import BullMQ from "bullmq";
import BeeQueue from "bee-queue";
import { Queue as GroupMQQueue } from "groupmq";
export declare const NUM_OF_JOBS = 20;
export declare const NUM_OF_SCHEDULERS = 3;
export declare const NUM_OF_COMPLETED_JOBS = 7;
export declare const NUM_OF_FAILED_JOBS = 13;
export declare const NUM_OF_WAITING_CHILDREN_JOBS = 2;
export declare const sleep: (t: number) => Promise<unknown>;
type QueueType = "bull" | "bullmq" | "bee" | "groupmq";
export declare const type: QueueType;
export declare const supportsFeature: (feature: keyof typeof featureSupport) => boolean;
declare const featureSupport: {
readonly pause: boolean;
readonly resume: boolean;
readonly clean: boolean;
readonly retry: boolean;
readonly promote: boolean;
readonly logs: boolean;
readonly schedulers: boolean;
readonly empty: boolean;
};
export declare const initMultipleQueues: (count?: number) => Promise<{
ctx: {
queues: ({
displayName: string;
queue: Bull.Queue<any>;
type: "bull";
} | {
displayName: string;
queue: BullMQ.Queue<any, any, string, any, any, string>;
type: "bullmq";
} | {
displayName: string;
queue: BeeQueue<any>;
type: "bee";
} | {
displayName: string;
queue: GroupMQQueue<any>;
type: "groupmq";
})[];
};
queues: ({
displayName: string;
queue: Bull.Queue<any>;
type: "bull";
} | {
displayName: string;
queue: BullMQ.Queue<any, any, string, any, any, string>;
type: "bullmq";
} | {
displayName: string;
queue: BeeQueue<any>;
type: "bee";
} | {
displayName: string;
queue: GroupMQQueue<any>;
type: "groupmq";
})[];
}>;
export declare const expectTRPCError: (fn: () => Promise<any>, code?: "BAD_REQUEST" | "NOT_FOUND" | "INTERNAL_SERVER_ERROR") => Promise<import("@trpc/server").TRPCError>;
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";
};
} | {
ctx: {
queues: {
queue: GroupMQQueue<any>;
displayName: string;
type: "groupmq";
}[];
};
firstQueue: {
queue: GroupMQQueue<any>;
displayName: string;
type: "groupmq";
};
}>;
export {};
//# sourceMappingURL=test.utils.d.ts.map