How are you guys handling threads or server processes that have to, for example, process the data in your application on a periodic basis? Cron jobs can do it and then run on the database. But, are there ways to launch threads within the rails application itself. I have heard of WebBrick ways, but I am working with lighttpd, fastcgi? (textdrive if you are really interested).
Look for rails_cron or script/runner. -- -- Tom Mornini On Mar 20, 2006, at 10:59 AM, Berlin Brown wrote:> How are you guys handling threads or server processes that have to, > for example, process the data in your application on a periodic basis? > > Cron jobs can do it and then run on the database. But, are there ways > to launch threads within the rails application itself. > > I have heard of WebBrick ways, but I am working with lighttpd, > fastcgi? (textdrive if you are really interested). > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On 3/20/06, Tom Mornini <tmornini@infomania.com> wrote:> > Look for rails_cron or script/runner. > > -- > -- Tom Mornini > > On Mar 20, 2006, at 10:59 AM, Berlin Brown wrote: > > > How are you guys handling threads or server processes that have to, > > for example, process the data in your application on a periodic basis? > > > > Cron jobs can do it and then run on the database. But, are there ways > > to launch threads within the rails application itself. > > > > I have heard of WebBrick ways, but I am working with lighttpd, > > fastcgi? (textdrive if you are really interested). > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >cron with script/runner. Or in my case (windows), ScheduledTasks. Works absolutely perfect! Don''t forget to apply "-e production" to your cron step. -- ------------------------------ Forget the icing. Bake the Cake! - the epi-centered developer ------------------------------ Peter Fitzgibbons -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060320/f61c486b/attachment.html
Those all look interesting. I wish rails_cron was a little bit more mature. But then again it may work perfectly out of the box. On 3/20/06, Peter Fitzgibbons <peter.fitzgibbons@gmail.com> wrote:> > > On 3/20/06, Tom Mornini <tmornini@infomania.com> wrote: > > Look for rails_cron or script/runner. > > > > -- > > -- Tom Mornini > > > > On Mar 20, 2006, at 10:59 AM, Berlin Brown wrote: > > > > > How are you guys handling threads or server processes that have to, > > > for example, process the data in your application on a periodic basis? > > > > > > Cron jobs can do it and then run on the database. But, are there ways > > > to launch threads within the rails application itself. > > > > > > I have heard of WebBrick ways, but I am working with lighttpd, > > > fastcgi? (textdrive if you are really interested). > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > cron with script/runner. Or in my case (windows), ScheduledTasks. > > Works absolutely perfect! > > Don''t forget to apply "-e production" to your cron step. > > -- > ------------------------------ > Forget the icing. Bake the Cake! > - the epi-centered developer > ------------------------------ > Peter Fitzgibbons > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
Why do you consider it immature? Because of the revision number? -- -- Tom Mornini On Mar 20, 2006, at 11:44 AM, Berlin Brown wrote:> Those all look interesting. I wish rails_cron was a little bit more > mature. But then again it may work perfectly out of the box. > > On 3/20/06, Peter Fitzgibbons <peter.fitzgibbons@gmail.com> wrote: >> >> >> On 3/20/06, Tom Mornini <tmornini@infomania.com> wrote: >>> Look for rails_cron or script/runner. >>> >>> -- >>> -- Tom Mornini >>> >>> On Mar 20, 2006, at 10:59 AM, Berlin Brown wrote: >>> >>>> How are you guys handling threads or server processes that have to, >>>> for example, process the data in your application on a periodic >>>> basis? >>>> >>>> Cron jobs can do it and then run on the database. But, are >>>> there ways >>>> to launch threads within the rails application itself. >>>> >>>> I have heard of WebBrick ways, but I am working with lighttpd, >>>> fastcgi? (textdrive if you are really interested). >>>> _______________________________________________ >>>> Rails mailing list >>>> Rails@lists.rubyonrails.org >>>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >>> _______________________________________________ >>> Rails mailing list >>> Rails@lists.rubyonrails.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> >> >> cron with script/runner. Or in my case (windows), ScheduledTasks. >> >> Works absolutely perfect! >> >> Don''t forget to apply "-e production" to your cron step. >> >> -- >> ------------------------------ >> Forget the icing. Bake the Cake! >> - the epi-centered developer >> ------------------------------ >> Peter Fitzgibbons >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> >> > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
No, it says it on the wiki page. On 3/20/06, Tom Mornini <tmornini@infomania.com> wrote:> Why do you consider it immature? > > Because of the revision number? > > -- > -- Tom Mornini > > On Mar 20, 2006, at 11:44 AM, Berlin Brown wrote: > > > Those all look interesting. I wish rails_cron was a little bit more > > mature. But then again it may work perfectly out of the box. > > > > On 3/20/06, Peter Fitzgibbons <peter.fitzgibbons@gmail.com> wrote: > >> > >> > >> On 3/20/06, Tom Mornini <tmornini@infomania.com> wrote: > >>> Look for rails_cron or script/runner. > >>> > >>> -- > >>> -- Tom Mornini > >>> > >>> On Mar 20, 2006, at 10:59 AM, Berlin Brown wrote: > >>> > >>>> How are you guys handling threads or server processes that have to, > >>>> for example, process the data in your application on a periodic > >>>> basis? > >>>> > >>>> Cron jobs can do it and then run on the database. But, are > >>>> there ways > >>>> to launch threads within the rails application itself. > >>>> > >>>> I have heard of WebBrick ways, but I am working with lighttpd, > >>>> fastcgi? (textdrive if you are really interested). > >>>> _______________________________________________ > >>>> Rails mailing list > >>>> Rails@lists.rubyonrails.org > >>>> http://lists.rubyonrails.org/mailman/listinfo/rails > >>> > >>> _______________________________________________ > >>> Rails mailing list > >>> Rails@lists.rubyonrails.org > >>> http://lists.rubyonrails.org/mailman/listinfo/rails > >>> > >> > >> cron with script/runner. Or in my case (windows), ScheduledTasks. > >> > >> Works absolutely perfect! > >> > >> Don''t forget to apply "-e production" to your cron step. > >> > >> -- > >> ------------------------------ > >> Forget the icing. Bake the Cake! > >> - the epi-centered developer > >> ------------------------------ > >> Peter Fitzgibbons > >> > >> _______________________________________________ > >> Rails mailing list > >> Rails@lists.rubyonrails.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > >> > >> > >> > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Good answer! :-) <blush> -- -- Tom Mornini On Mar 20, 2006, at 12:30 PM, Berlin Brown wrote:> No, it says it on the wiki page. > > On 3/20/06, Tom Mornini <tmornini@infomania.com> wrote: >> Why do you consider it immature? >> >> Because of the revision number? >> >> -- >> -- Tom Mornini >> >> On Mar 20, 2006, at 11:44 AM, Berlin Brown wrote: >> >>> Those all look interesting. I wish rails_cron was a little bit more >>> mature. But then again it may work perfectly out of the box. >>> >>> On 3/20/06, Peter Fitzgibbons <peter.fitzgibbons@gmail.com> wrote: >>>> >>>> >>>> On 3/20/06, Tom Mornini <tmornini@infomania.com> wrote: >>>>> Look for rails_cron or script/runner. >>>>> >>>>> -- >>>>> -- Tom Mornini >>>>> >>>>> On Mar 20, 2006, at 10:59 AM, Berlin Brown wrote: >>>>> >>>>>> How are you guys handling threads or server processes that >>>>>> have to, >>>>>> for example, process the data in your application on a periodic >>>>>> basis? >>>>>> >>>>>> Cron jobs can do it and then run on the database. But, are >>>>>> there ways >>>>>> to launch threads within the rails application itself. >>>>>> >>>>>> I have heard of WebBrick ways, but I am working with lighttpd, >>>>>> fastcgi? (textdrive if you are really interested). >>>>>> _______________________________________________ >>>>>> Rails mailing list >>>>>> Rails@lists.rubyonrails.org >>>>>> http://lists.rubyonrails.org/mailman/listinfo/rails >>>>> >>>>> _______________________________________________ >>>>> Rails mailing list >>>>> Rails@lists.rubyonrails.org >>>>> http://lists.rubyonrails.org/mailman/listinfo/rails >>>>> >>>> >>>> cron with script/runner. Or in my case (windows), ScheduledTasks. >>>> >>>> Works absolutely perfect! >>>> >>>> Don''t forget to apply "-e production" to your cron step. >>>> >>>> -- >>>> ------------------------------ >>>> Forget the icing. Bake the Cake! >>>> - the epi-centered developer >>>> ------------------------------ >>>> Peter Fitzgibbons >>>> >>>> _______________________________________________ >>>> Rails mailing list >>>> Rails@lists.rubyonrails.org >>>> http://lists.rubyonrails.org/mailman/listinfo/rails >>>> >>>> >>>> >>> _______________________________________________ >>> Rails mailing list >>> Rails@lists.rubyonrails.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails