UNPKG

@xtcry/bull-arena

Version:

An interactive UI dashboard for Bee/Bull Queue

23 lines (22 loc) 770 B
import { IArenaConfig, IFlow } from '../types'; export default class Flows { _flows: Record<string, Record<string, IFlow>>; _config: IArenaConfig; useCdn: { value: boolean; useCdn: boolean; }; constructor(config: IArenaConfig); list(): import("../types").FlowConfigType[] | undefined; hasFlows(): boolean; setConfig(config: IArenaConfig): void; private _checkConstructors; get(connectionName: string, queueHost: string): Promise<any>; /** * Creates and adds jobs with the given data using the provided flow. * * @param {IFlow} flow A Bullmq flow class * @param {Object} data The data to be used within the flow */ set(flow: IFlow, data: any): Promise<any>; }