For example, I set the task this way
Resque.enqueue(MyJob, user.id)
Before the queue of the next job with the same user.id, I would like to check if there is a job in the queue with this user ID.
I hope there is a syntax like:
Resque.queue('MyQueue').has_pending_job(MyJob, user.id)
source
share