John Breddengard
2011-Oct-14 08:47 UTC
Run some logic in app at desired time based on DB record
I need to run some logic in my rails app (for example process some records in DB) at some time. I can not just use cron for this because the time is set by admin and is stored in DB. How is better to do this? -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Martin Wawrusch
2011-Oct-14 14:41 UTC
Re: Run some logic in app at desired time based on DB record
Take a look at simpleworker.com . It''s probably the easiest way to do this. On Fri, Oct 14, 2011 at 1:47 AM, John Breddengard <222pizza-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> I need to run some logic in my rails app (for example process some > records in DB) at some time. I can not just use cron for this because > the time is set by admin and is stored in DB. How is better to do this? > > -- > 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 this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.