Skip to content

Commit

Permalink
fix: remove next job in removeRepeatableByKey fixes #165
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Feb 16, 2021
1 parent 6e61c56 commit fb3a7c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/classes/repeat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,17 @@ export class Repeat extends QueueBase {
const data = this._keyToData(repeatJobKey);
const queueKey = this.keys[''];

const repeatJobId = getRepeatJobId(
data.name,
'',
md5(repeatJobKey),
data.id,
);

return (<any>client).removeRepeatable(
this.keys.repeat,
this.keys.delayed,
data.id,
repeatJobId,
repeatJobKey,
queueKey,
);
Expand Down

0 comments on commit fb3a7c2

Please sign in to comment.