UNPKG

durabull

Version:

A durable workflow engine built on top of BullMQ and Redis

29 lines (28 loc) 682 B
/** * BullMQ queue management */ import { Queue, QueueEvents } from 'bullmq'; import { Redis } from 'ioredis'; /** * Queue instances */ interface Queues { workflow: Queue; activity: Queue; workflowEvents: QueueEvents; activityEvents: QueueEvents; connection: Redis; } /** * Initialize queues with explicit configuration */ export declare function initQueues(redisUrl: string, workflowQueue: string, activityQueue: string): Queues; /** * Get queue instances (must call initQueues first in durable mode) */ export declare function getQueues(): Queues; /** * Close all queue connections */ export declare function closeQueues(): Promise<void>; export {};