From 1a4a34632577e6d74223935037c0100a086dfe61 Mon Sep 17 00:00:00 2001 From: roggervalf Date: Thu, 21 Nov 2024 20:05:38 -0500 Subject: [PATCH 1/2] fix(queue): change _jobScheduler from private to protected for extension --- src/classes/queue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/queue.ts b/src/classes/queue.ts index b527c73509..2042b180eb 100644 --- a/src/classes/queue.ts +++ b/src/classes/queue.ts @@ -153,7 +153,7 @@ export class Queue< protected libName = 'bullmq'; private _repeat?: Repeat; // To be deprecated in v6 in favor of JobScheduler - private _jobScheduler?: JobScheduler; + protected _jobScheduler?: JobScheduler; constructor( name: string, From ff3e30437140971a1845e6184636c109d4046600 Mon Sep 17 00:00:00 2001 From: roggervalf Date: Thu, 21 Nov 2024 20:11:05 -0500 Subject: [PATCH 2/2] chore: export job-scheduler for testing in pro version --- src/classes/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classes/index.ts b/src/classes/index.ts index ad2158913c..88c348d845 100644 --- a/src/classes/index.ts +++ b/src/classes/index.ts @@ -5,6 +5,7 @@ export * from './child-processor'; export * from './errors'; export * from './flow-producer'; export * from './job'; +export * from './job-scheduler'; // export * from './main'; this file must not be exported // export * from './main-worker'; this file must not be exported export * from './queue-base';