How to prepend Sidekiq job to beginning of a queue?
I know that most obvious thing you might want to say right now is "just add a separate high-prio queue, with a separate worker!", but I'm constrained on resources, so an extra worker is out of the question.
Now, I know that technically Sidekiq is prepending jobs to the queue in Redis, and pops them from the end of the list to get next one for processing (which is somewhat counterintuitive, but ok). Occasionally, to preserve unfinished jobs when terminating, it actually does what I need: it re-queues jobs to the end of the list (== they will be pulled next). So, in the end, does anybody know how to prepend (well, technically, it's "append") a job to the queue so it's performed by the next fetch? Without monkey-patching the Sidekiq source too much, of course. Or, maybe, someone knows a gem that already does that?..