Forum: Ruby on Rails Rails, multiple connections and threads

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C95664a5c59ccdfb0da2f5910675c62c?d=identicon&s=25 Sudhi Kulkarni (sudhi)
on 2009-04-29 16:57
Hi,

I have a rails app which currently does the following

"After the launch of the page, there is a button click which starts
another ruby script on server using system(ruby <file-name>)" This
execution may take a while around 5-10 mins.

I have following questions

1. While the script is being executed are other connection requests to
server waiting or are there services?
2. Is there a number parallel connections concept with rails? If yes how
to configure it?
3. Should I make the script call as part of a new Thread to avoid other
conenctions from waiting?

Thanks,
Sudhindra
0d56133042e4814c1b2255ea655f2361?d=identicon&s=25 Jeff Burlysystems (jburly)
on 2009-04-29 18:24
(Received via mailing list)
Might want to try:
   ...
   fork { `ruby #{RAILS_ROOT}/script/some_script.rb` }
   ...

Jeff

On Apr 29, 7:57 am, Sudhi Kulkarni <rails-mailing-l...@andreas-s.net>
This topic is locked and can not be replied to.