I need to remove specific individual job from queue. actual case is I've added a job into queue and then in some API call I need to remove that individual job from the queue. so, It won't be repeat in future.
add:
const job = await this.locationQueue.add('alert', { handle, author, data }, { repeat: { every: 60000 } });
remove:
await this.locationQueue.removeRepeatable('alert', { jobId: request.jobKey, every: 60000 });
Where request.jobKey is job.id from add.
You need to specify the same
jobId
when you adding it to the queue, as far as I know.