Update scheduled job?
Created by: VakoNonikashvili
User scheduled post for tomorrow:
postQueue.add({ postId: 1 }, { delay: 60 * 60 * 24 });
in 2 hour he changed mind and want to reschedule this post after 3 days.
As I saw in documentation, queue has getJob method which finds job with Id but we want to find job with postId. Also query all jobs will be slow, if there will huge amount of jobs in queue.
How to find this job and update with correct delay?