Skip to content

Commit

Permalink
fix: correct setting of worker options defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
areg-gareginyan-im committed Nov 20, 2024
1 parent 40d4e9b commit b3d32f6
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,19 +70,7 @@ export class BullMQJobQueueStrategy implements InspectableJobQueueStrategy {

async init(injector: Injector): Promise<void> {
const options = this.initOptions(injector);
this.options = {
...options,
workerOptions: {
removeOnComplete: options.workerOptions?.removeOnComplete ?? {
age: 60 * 60 * 24 * 30,
count: 5000,
},
removeOnFail: options.workerOptions?.removeOnFail ?? {
age: 60 * 60 * 24 * 30,
count: 5000,
},
},
};
this.options = options;
this.connectionOptions =
options.connection ??
({
Expand Down

0 comments on commit b3d32f6

Please sign in to comment.