small fixes

This commit is contained in:
Boki 2025-06-19 23:57:20 -04:00
parent 875296922e
commit 9413d6588d
4 changed files with 24 additions and 3 deletions

View file

@ -109,6 +109,7 @@ export class Queue {
pattern: cronPattern,
// Use job name as repeat key to prevent duplicates
key: `${this.queueName}:${name}`,
...options.repeat,
},
};
@ -116,7 +117,8 @@ export class Queue {
queueName: this.queueName,
jobName: name,
cronPattern,
repeatKey: scheduledOptions.repeat?.key
repeatKey: scheduledOptions.repeat?.key,
immediately: scheduledOptions.repeat?.immediately
});
return await this.bullQueue.add(name, data, scheduledOptions);