Replace the memory-intensive LRANGE in #destroy. Visit each job in the queue using RPOPLPUSH, saving only the jobs that do not match. Still slow, but will not be memory intensive at all, even with very large queues.
Replace the memory-intensive LRANGE in #destroy. Visit each job in the queue using RPOPLPUSH, saving only the jobs that do not match. Still slow, but will not be memory intensive at all, even with very large queues.
ryan-drake-stoker/resque,vietnt/resque,hoffmanc/resque,ktheory/resque,timo-p/resque,paran0ids0ul/resque,lileeyao/resque,bonekost/resque,delectable/resque,kangkot/resque,sideci-sample/sideci-sample-resque,lukeasrodgers/resque,lileeyao/resque,AlexVPopov/resque,stitchfix/resque,tylerdooling/resque,hoffmanc/resque,fmitech/resque,ktheory/resque,fmitech/resque,igorjancic/resque,ychaim/resque,l4u/resque,sideci-sample/sideci-sample-resque,jacknguyen/resque,sufery/resque,vladimirich/resque,stitchfix/resque,timo-p/resque,paran0ids0ul/resque,bhighley/resque,vladimirich/resque,delectable/resque,igorjancic/resque,eileencodes/resque,lukeasrodgers/resque,m0dd3r/resque,ducthanh/resque,tylerdooling/resque,jonatas/resque,l4u/resque,partap/resque,m0dd3r/resque,ngpestelos/resque,redhotpenguin/resque,rutikasb/resque,jacknguyen/resque,sufery/resque