resque-restriction icon indicating copy to clipboard operation
resque-restriction copied to clipboard

Option to not re-queue job if restricted?

Open daniel-magoosh opened this issue 4 years ago • 1 comments

The second bullet point in the readme says "it will execute the exceeded jobs at the next period." Is it possible to disable this functionality? I have a job that I would like to restrict to happening once per week per record, and if a job for that record is queued again within that timeframe, the job should just be dropped instead of waiting and running at the end of the week.

daniel-magoosh avatar Oct 08 '21 23:10 daniel-magoosh

@daniel-magoosh I'm afraid it doesn't support to drop the job, but it should be easy to do, just change the code where to push the job back to the queue.

flyerhzm avatar Oct 13 '21 12:10 flyerhzm