Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Que doesn't log failed jobs #6

Closed
joevandyk opened this issue Jan 13, 2014 · 2 comments
Closed

Que doesn't log failed jobs #6

joevandyk opened this issue Jan 13, 2014 · 2 comments

Comments

@joevandyk
Copy link
Contributor

I see

I, [2014-01-12T20:07:10.774322 #27845]  INFO -- : [Que] No jobs available...

in the output even when que is processing failing jobs. I think there should be some logs saying that the job failed?

I do see:

I, [2014-01-12T20:06:40.769155 #27845]  INFO -- : [Que] Worked job in 0.7 ms: #<MyJob:0xbac4f300 @attrs={"priority"=>"1", "run_at"=>"2014-01-12 20:06:37.653061-08", "job_id"=>"7", "job_class"=>"MyJob", "args"=>"[]", "error_count"=>"0", :args=>[]}, @destroyed=true>

on job success.

@chanks
Copy link
Collaborator

chanks commented Jan 13, 2014

Yeah, I did a bunch of work on logging yesterday, and pushed it about three minutes ago :) I plan to tweak it somewhat before another release, though. Suggestions are welcome.

Doc:

https://github.com/chanks/que/blob/master/docs/logging.md

@joevandyk
Copy link
Contributor Author

If no jobs seen, might not be necessary to log those? Or maybe log every minute if no job found?

I like to have a short work_interval so jobs can wake up faster, but the job_unavailable events are spamming the logs.

@chanks chanks closed this as completed in d4a1aa7 Jan 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants