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. Or it just tries to do some thing, if it fails, waits for random time and does it again? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
DelayedJob just creates anotar thread and a send the email or execute the method on parallel without stop the ruby thread! You can set a delay to call the method but it does not works as you throught! ;) Sent from my iPhone On 31/08/2012, at 23:47, Karthikeyan A k <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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. > > Or it just tries to do some thing, if it fails, waits for random time > and does it again? > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
Thanks a lot folks! that explains all of it I think. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.