librelist archives

« back to archive

How do I interpret the work output?

How do I interpret the work output?

From:
Emil Kampp
Date:
2013-05-30 @ 17:23
Hi guys. 

After installing 2.0.0.pre1, and following the instructions, running 
`bundle exec resque work` I get this result (and only this single line):

D, [2013-05-30T19:11:15.179468 #53489] DEBUG -- : resque-2.0.0.pre.1: Starting

How should I interpret that? I would have expected it to run continuously 
and poll data, but it returns,giving me back the console.


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 interpret the work output?

From:
Steve Klabnik
Date:
2013-05-30 @ 17:41
In theory it should work. What happens when you try it with more verbose mode?

2.0 isn't really ready or stable yet, so you may have just found a bug.

Re: [resque] How do I interpret the work output?

From:
Emil Kampp
Date:
2013-05-30 @ 18:17
I'm aware that there might be bugs, but that's half the fun of developing:
Fixing what's broken :) 

First a couple of other observations, that might have a bearing on this issue: 

1. You can't do Resque.new, as the documentation states. After reading the
resque.rb, I gathered that I would push to a queue like this: 
> Resque.push 'invitations', BulkInvitationJob.new

2. Running Resque.info tells me that this did indeed put the job to the queue: 

> Resque.info
> => {:pending=>3, :processed=>0, :queues=>1, :workers=>0, :working=>0, 
:failed=>0, :servers=>["redis://localhost:6379/0"], 
:environment=>"development"}




How do I run the binary in verbose mode? 


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 Thursday, May 30, 2013 at 7:41 PM, Steve Klabnik wrote:

> In theory it should work. What happens when you try it with more verbose mode?
> 
> 2.0 isn't really ready or stable yet, so you may have just found a bug. 

Re: [resque] How do I interpret the work output?

From:
Steve Klabnik
Date:
2013-05-30 @ 18:24
Absolutely! Just confirming you may have found a real one.

Yup, the README is a target I'm trying to get to, not a reflection of
what works this exact moment.

> How do I run the binary in verbose mode?

IIRC, it has -v and --verbose.

Re: [resque] How do I interpret the work output?

From:
Emil Kampp
Date:
2013-05-30 @ 18:32
Ok. Cool. I'll continue to make patches towards the read me, as I work my 
way through this setup :) 

And yes, of course, we need to be sure, that I'm not having a meltdown, 
and can't spell, or something like that. 

Running `resque help work` doesn't mention a verbose flag, and I can't 
find a reference in the rescue/cli.rb either. 

And running either of those options to the work action fails:

ERROR: resque work was called with arguments ["--verbose"]


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 Thursday, May 30, 2013 at 8:24 PM, Steve Klabnik wrote:

> Absolutely! Just confirming you may have found a real one.
> 
> Yup, the README is a target I'm trying to get to, not a reflection of
> what works this exact moment.
> 
> > How do I run the binary in verbose mode?
> 
> IIRC, it has -v and --verbose. 

Re: [resque] How do I interpret the work output?

From:
Steve Klabnik
Date:
2013-05-30 @ 18:37
Yes, patches would be excellent :)

Apparently, I am wrong about verbosity:
https://github.com/resque/resque/blob/master/lib/resque/cli.rb

I swore we added something for that... hrm. That's a bug.

Re: [resque] How do I interpret the work output?

From:
Emil Kampp
Date:
2013-05-30 @ 18:38
All right. I would gladly help, but I'm unsure as to what information 
would be good to have in a verbose mode. Any pointers on that?  


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 Thursday, May 30, 2013 at 8:37 PM, Steve Klabnik wrote:

> Yes, patches would be excellent :)
> 
> Apparently, I am wrong about verbosity:
> https://github.com/resque/resque/blob/master/lib/resque/cli.rb
> 
> I swore we added something for that... hrm. That's a bug. 

Re: [resque] How do I interpret the work output?

From:
Steve Klabnik
Date:
2013-05-30 @ 18:44
Check out lib/resque/logging.rb

We already do logger.info and logger.debug in the right places. It'd
just be a matter of hooking up --verbose to info and --very-verbose to
debug.

Re: [resque] How do I interpret the work output?

From:
Steve Klabnik
Date:
2013-05-30 @ 18:45
Oh, and https://github.com/resque/resque/blob/master/lib/resque.rb#L399
is where it's instantiated. So you'd want to set one up with a
different level.

Re: [resque] How do I interpret the work output?

From:
Emil Kampp
Date:
2013-05-30 @ 20:55

Thanks. I'll give it a try. 




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 Thursday, May 30, 2013 at 8:45 PM, Steve Klabnik wrote:

> Oh, and https://github.com/resque/resque/blob/master/lib/resque.rb#L399
> is where it's instantiated. So you'd want to set one up with a
> different level.
> 
>