# Stopping long running actions

**URL:** <https://www.ruby-forum.com/t/stopping-long-running-actions/153907>\
**Category:** Rails\
**Created:** [November 22, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/stopping-long-running-actions/153907 "2008-11-22T20:42:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![doug](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/dbc845/32.png) [@doug](https://www.ruby-forum.com/u/doug)\
**Post date:** [November 22, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/stopping-long-running-actions/153907/1 "2008-11-22T20:42:02Z")

</div>

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-](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
