I am currently facing an issue in which I have scheduled job using Resque and redis but due to unavailability of any worker at the scheduled time for the job to run it got missed. Now the job remains in enqueued state.
Is there any way to update the timestamp of the job in redis so that it can be rerun again without scheduling another job to pick those jobs which are missed?
I tried to find out all the unique job_id which are missed, but unable to get the data in redis using the job_id
If you're willing to re-run the same job again you can try resque-retry
If you want to modify the redis key-val by yourself (NOT recommended due to consistency and race conditions)
you may try to run this via
redis-cliusingLINDEXcommand, this will pull the item value and save it for later,next use
LREMto remove it from the queue.now update the timestamp from the previous step (it's just JSON strigify), now you have to push it back to the queue using
LPUSHcommand.for more about the
redis-clicommands check here