I am new to Bull and my use case is to run a job after 10 sec, for that, I am using the below code
const options = {
delay: 10000, // in ms
jobId: myCustomUUID,
};
myQueue.add(someRandomData, options);
after adding it to the queue, now after a few sec let's say 4 sec, i want to remove the job from the queue as it is no longer required due to some condition, how can I achieve it. I know there is job.remove(). but how to use it for a given jobId. can someone please help me with it.
I think this is best solution: