librelist archives

« back to archive

Re: Retrieve a list of working and pending jobs on Resque

Re: Retrieve a list of working and pending jobs on Resque

From:
Ben Zhang
Date:
2013-06-04 @ 18:53
Hi there,

I asked a question on github on how to retrieve a list of working and
pending jobs from Resque. I was pointed to these code

https://github.com/resque/resque/blob/master/lib/resque.rb#L316-L330
https://github.com/resque/resque/blob/1-x-stable/lib/resque/job.rb#L284-L287

However, it seems that `Resque.queued` method call only available in master
branch, not in 1.24.1, latest version of the gem. Is this a recent addition
to master branch? How safe is it to use master branch or use a forked
version of it in my project. I kind of need the gem to be stable for
production environment.

Best,
Be*n Zhang*

Re: [resque] Re: Retrieve a list of working and pending jobs on Resque

From:
Emil Kampp
Date:
2013-06-04 @ 18:58
I'm using the master branch in production, and I don't have any problems. 
Mind you, that the project is a prototype. 


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 Tuesday, June 4, 2013 at 8:53 PM, Ben Zhang wrote:

> Hi there,
> 
> I asked a question on github on how to retrieve a list of working and 
pending jobs from Resque. I was pointed to these code
> 
> https://github.com/resque/resque/blob/master/lib/resque.rb#L316-L330 
https://github.com/resque/resque/blob/1-x-stable/lib/resque/job.rb#L284-L287
> 
> However, it seems that `Resque.queued` method call only available in 
master branch, not in 1.24.1, latest version of the gem. Is this a recent 
addition to master branch? How safe is it to use master branch or use a 
forked version of it in my project. I kind of need the gem to be stable 
for production environment. 
> 
> Best,Ben Zhang 

Re: [resque] Re: Retrieve a list of working and pending jobs on Resque

From:
Steve Klabnik
Date:
2013-06-04 @ 19:02
I would not recommend anyone but the bravest of souls using master in
production right now, to be clear. :)

As I mentioned on the ticket, I think the method could be backported.

Re: [resque] Re: Retrieve a list of working and pending jobs on Resque

From:
Emil Kampp
Date:
2013-06-04 @ 19:03
I'll consider my self brave, then. I don't have anything against working 
to solve the issues I find along the way. 


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 Tuesday, June 4, 2013 at 9:02 PM, Steve Klabnik wrote:

> I would not recommend anyone but the bravest of souls using master in
> production right now, to be clear. :)
> 
> As I mentioned on the ticket, I think the method could be backported. 

Re: [resque] Re: Retrieve a list of working and pending jobs on Resque

From:
Steve Klabnik
Date:
2013-06-04 @ 19:05
... did I mention I love brave people? :) <3.

Re: [resque] Re: Retrieve a list of working and pending jobs on Resque

From:
Emil Kampp
Date:
2013-06-04 @ 19:06
Good to know. I haven't found anything critical, that haven't been fixable
with some asking around and some tinkering, and a pull request. And Steve 
is great at pulling them in fast. 


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 Tuesday, June 4, 2013 at 9:05 PM, Steve Klabnik wrote:

> ... did I mention I love brave people? :) <3.
> 
>