Ruby on Rails
Saturday, September 1, 2012
On Saturday, September 1, 2012 3:48:26 AM UTC+1, Ruby-Forum.com User wrote:
Hello People,
I just want to know how the delay job gem works. I am confused how it
detects when the server is having less load and does computing intensive
job at that time.
It doesn't. You run separate delayed job workers that try to process the queue of delayed jobs as fast as they can. Delayed job isn't about waiting for a less busy time - it's mostly about decoupling the job result from the http response.
Or it just tries to do some thing, if it fails, waits for random time
and does it again?
If a job does fail it does exponential backoff, upto a configurable limit (a default of 25 attempts I think)
Fred
----
Posted via http://www.ruby-forum.com/.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Vvw6kkVgY3IJ.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment