My contoller -> action executes the ruby script on click of a button
using System command.
Ruby Script takes 30seconds to execute.

If two users clicks the button same time in two separate browsers,
second user execution will start after first user's reqeust is
completed.

I need suggestion how to handle this ?

Also is it possible to skip the script execution if it is already
started by other user ?

Thanks in advance....
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to