Forum: Ruby on Rails stopping long running actions

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.
Doug (Guest)
on 2008-11-22 21:42
(Received via mailing list)
I have been trying to find a way to stop a long running action.  The
method I have been trying is using an around filter with the
Terminator gem (http://www.lindsaar.net/2008/9/11/terminator-timeout-
without-mercy)  however the Terminator gem doesn't seem to play well
with mongrel.  testing it in script/console gives the expected
results, but when I use it with script/server Terminator halts the
mongrel entirely.  I dug through mongrel Signal.trap calls and tried a
few different signals, but I never got anything to work.  I tried both
the standard Timeout Module and SystemTimer with even less luck.  So
the question is, has anyone else been able to get a similar setup
working?  How would you stop long running requests?
Thanks,
Doug
This topic is locked and can not be replied to.