UNPKG

@xtcry/bull-arena

Version:

An interactive UI dashboard for Bee/Bull Queue

23 lines (22 loc) 820 B
import { IArenaConfig, IQueue } from '../types'; export default class Queues { _queues: Record<string, Record<string, IQueue>>; _config: IArenaConfig; useCdn: { value: boolean; useCdn: boolean; }; constructor(config: IArenaConfig); list(): import("../types").QueueConfigType[]; setConfig(config: IArenaConfig): void; private _checkConstructors; get(queueName: string, queueHost: string): Promise<any>; /** * Creates and adds a job with the given `data` to the given `queue`. * * @param {IQueue} queue A bee or bull queue class * @param {Object} data The data to be used within the job * @param {String} name The name of the Bull job (optional) */ set(queue: IQueue, data: any, name: string): Promise<any>; }