librelist archives

« back to archive

How do I clear the queue?

How do I clear the queue?

From:
Emil Kampp
Date:
2013-05-31 @ 09:37
I'm having some trouble figuring out, how to clear the queue (dropping all
scheduled jobs) in 2.0.0.pre1 




Best regards / Venlig hilsen

Emil Kampp
Kampp Media
Baltorpvej 189, st.-1, DK 2750
emil.kampp.me | emil@kampp.me | +45 42427176 | CVR: DK30160983

Re: [resque] How do I clear the queue?

From:
Jake Wilkins
Date:
2013-05-31 @ 10:04
Not quite emptying, but you can destroy the queue with:

Queue#destroy

https://github.com/resque/resque/blob/master/lib/resque/queue.rb#L105

You can get a Queue object with

Resque.queue(name)

https://github.com/resque/resque/blob/master/lib/resque.rb#L218

-- 
Jake Wilkins




On Friday, May 31, 2013 at 10:37 AM, Emil Kampp wrote:

> 
> I'm having some trouble figuring out, how to clear the queue (dropping 
all scheduled jobs) in 2.0.0.pre1 
> 
> 
> 
> 
> Best regards / Venlig hilsen
> 
> Emil Kampp
> Kampp Media
> Baltorpvej 189, st.-1, DK 2750
> emil.kampp.me | emil@kampp.me (mailto:emil@kampp.me) | +45 42427176 | 
CVR: DK30160983
> 

Re: [resque] How do I clear the queue?

From:
Emil Kampp
Date:
2013-05-31 @ 10:05
Great. Thanks! 


Best regards / Venlig hilsen

Emil Kampp
Kampp Media
Baltorpvej 189, st.-1, DK 2750
emil.kampp.me | emil@kampp.me | +45 42427176 | CVR: DK30160983


On Friday, May 31, 2013 at 12:04 PM, Jake Wilkins wrote:

> Not quite emptying, but you can destroy the queue with:
> 
> Queue#destroy
> 
> https://github.com/resque/resque/blob/master/lib/resque/queue.rb#L105
> 
> You can get a Queue object with
> 
> Resque.queue(name)
> 
> https:// github.com/resque/resque/blob/master/lib/resque.rb#L218 
(https://github.com/resque/resque/blob/master/lib/resque.rb#L218)
> 
> -- 
> Jake Wilkins
> 
> 
> 
> 
> On Friday, May 31, 2013 at 10:37 AM, Emil Kampp wrote:
> 
> > 
> > I'm having some trouble figuring out, how to clear the queue (dropping
all scheduled jobs) in 2.0.0.pre1 
> > 
> > 
> > 
> > 
> > Best regards / Venlig hilsen
> > 
> > Emil Kampp
> > Kampp Media
> > Baltorpvej 189, st.-1, DK 2750
> > emil.kampp.me (http://emil.kampp.me) | emil@kampp.me 
(mailto:emil@kampp.me) | +45 42427176 | CVR: DK30160983
> > 
>