Hi, I am new to ruby and to rails, but I like what I see so far. I have been working on a web app in java (servlets and JSPs) that, based on a request from the user, kicks off a thread in the background to perform a task (puts messages in an MQSeries queue). The thread object is stored in the session and I then allow the user to control the task from the browser(like stop it). Is the same thing possible/easy to do in rails? I searched but couldn''t find quite what I am looking for. If someone can point me in the right direction, that would be great. Thanks in advance, eching -- Posted via http://www.ruby-forum.com/.
Kevin Skoglund
2006-Jan-23 18:53 UTC
[Rails] Re: running a background task/thread in rails?
This wiki page might be helpful: http://wiki.rubyonrails.com/rails/pages/HowToRunBackgroundJobsInRails Kevin On Jan 23, 2006, at 11:27 AM, rails-request@lists.rubyonrails.org wrote:> From: Eric Ching <bingopajama@hotmail.com> > Date: January 23, 2006 11:11:56 AM MST > To: rails@lists.rubyonrails.org > Subject: [Rails] running a background task/thread in rails? > Reply-To: rails@lists.rubyonrails.org > > > Hi, I am new to ruby and to rails, but I like what I see so far. I > have > been working on a web app in java (servlets and JSPs) that, based on a > request from the user, kicks off a thread in the background to > perform a > task (puts messages in an MQSeries queue). The thread object is > stored > in the session and I then allow the user to control the task from the > browser(like stop it). > > Is the same thing possible/easy to do in rails? I searched but > couldn''t > find quite what I am looking for. If someone can point me in the > right > direction, that would be great. > > Thanks in advance, > eching
Eric Ching wrote:> Hi, I am new to ruby and to rails, but I like what I see so far. I have > been working on a web app in java (servlets and JSPs) that, based on a > request from the user, kicks off a thread in the background to perform a > task (puts messages in an MQSeries queue). The thread object is stored > in the session and I then allow the user to control the task from the > browser(like stop it). > > Is the same thing possible/easy to do in rails? I searched but couldn''t > find quite what I am looking for. If someone can point me in the right > direction, that would be great. > > Thanks in advance, > echingCheck this link: http://kylemaxwell.com/articles/2006/01/06/railscron-0-1 and the svn: http://dev.kylemaxwell.com/repository/browse/rails_cron/trunk -- Posted via http://www.ruby-forum.com/.
> Check this link: > http://kylemaxwell.com/articles/2006/01/06/railscron-0-1 > > and the svn: > http://dev.kylemaxwell.com/repository/browse/rails_cron/trunkExcellent! Looks about what I need. Thanks for the links. -- Posted via http://www.ruby-forum.com/.