File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { MetricsTime , Queue , QueueEvents , Worker } from "bullmq" ;
2
- import { log , mapSequential , noop } from "@proto-kit/common" ;
2
+ import { log , noop } from "@proto-kit/common" ;
3
3
import {
4
4
TaskPayload ,
5
5
Closeable ,
6
6
InstantiatedQueue ,
7
7
TaskQueue ,
8
- SequencerModule ,
9
8
AbstractTaskQueue ,
10
9
} from "@proto-kit/sequencer" ;
10
+
11
11
import { InstantiatedBullQueue } from "./InstantiatedBullQueue" ;
12
12
13
13
export interface BullQueueConfig {
@@ -84,8 +84,8 @@ export class BullQueue
84
84
}
85
85
86
86
public async getQueue ( queueName : string ) : Promise < InstantiatedQueue > {
87
- const queue = this . createOrGetQueue ( queueName , ( name ) => {
88
- console . log ( `Creating queue ${ queueName } ` ) ;
87
+ return this . createOrGetQueue ( queueName , ( name ) => {
88
+ log . debug ( `Creating bull queue ${ queueName } ` ) ;
89
89
90
90
const { redis } = this . config ;
91
91
@@ -96,8 +96,6 @@ export class BullQueue
96
96
97
97
return new InstantiatedBullQueue ( name , queue , events , this . config ) ;
98
98
} ) ;
99
-
100
- return queue ;
101
99
}
102
100
103
101
public async start ( ) {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export * from "./worker/flow/JSONTaskSerializer";
13
13
export * from "./worker/queue/TaskQueue" ;
14
14
export * from "./worker/queue/LocalTaskQueue" ;
15
15
export * from "./worker/queue/ListenerList" ;
16
+ export * from "./worker/queue/AbstractTaskQueue" ;
16
17
export * from "./worker/worker/FlowTaskWorker" ;
17
18
export * from "./worker/worker/LocalTaskWorkerModule" ;
18
19
export * from "./worker/worker/TaskWorkerModule" ;
You can’t perform that action at this time.
0 commit comments