# Execution timeout

**URL:** <https://www.ruby-forum.com/t/execution-timeout/51170>\
**Category:** Rails\
**Created:** [December 27, 2005, 5:17pm UTC](https://www.ruby-forum.com/t/execution-timeout/51170 "2005-12-27T17:17:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![guytavor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5e9695/32.png) [@guytavor](https://www.ruby-forum.com/u/guytavor)\
**Post date:** [December 27, 2005, 5:17pm UTC](https://www.ruby-forum.com/t/execution-timeout/51170/1 "2005-12-27T17:17:13Z")

</div>

Hi!  
I have a rails action controller method which takes long time to  
complete.  
After about 4-5 minutes running, I get a “execution expired” error which  
stops this method’s execution.  
I looked and looked, searched and searched, but could not find how to  
configure my ActionController’s timeout to be greater than the default.

Could anyone help?

---

<div class="post-metadata">

**Author:** ![guytavor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5e9695/32.png) [@guytavor](https://www.ruby-forum.com/u/guytavor)\
**Post date:** [December 27, 2005, 5:23pm UTC](https://www.ruby-forum.com/t/execution-timeout/51170/2 "2005-12-27T17:23:51Z")

</div>

On 12/27/05, Guy T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi!  
> I have a rails action controller method which takes long time to  
> complete.  
> After about 4-5 minutes running, I get a “execution expired” error which  
> stops this method’s execution.  
> I looked and looked, searched and searched, but could not find how to  
> configure my ActionController’s timeout to be greater than the default.
> 
> Could anyone help?

There was just a question on Rails Weenie regarding this:

[http://rails.techno-weenie.net/question/2005/12/24/how\_do\_you\_display\_the\_progress\_of\_a\_long\_running\_action](http://rails.techno-weenie.net/question/2005/12/24/how_do_you_display_the_progress_of_a_long_running_action)

mad robby even gives some example code for this.

–  
rick  
[http://techno-weenie.net](http://techno-weenie.net)

---

<div class="post-metadata">

**Author:** ![guytavor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5e9695/32.png) [@guytavor](https://www.ruby-forum.com/u/guytavor)\
**Post date:** [December 28, 2005, 5:18pm UTC](https://www.ruby-forum.com/t/execution-timeout/51170/3 "2005-12-28T17:18:13Z")

</div>

The link you specified does not relate to the same problem.  
AM I missing something here?  
will setting a session variable now and again prevent the execution  
timeout?

Guy

Rick O. wrote:

> On 12/27/05, Guy T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hi!  
> > I have a rails action controller method which takes long time to  
> > complete.  
> > After about 4-5 minutes running, I get a “execution expired” error which  
> > stops this method’s execution.  
> > I looked and looked, searched and searched, but could not find how to  
> > configure my ActionController’s timeout to be greater than the default.
> > 
> > Could anyone help?
> 
> There was just a question on Rails Weenie regarding this:
> 
> [http://rails.techno-weenie.net/question/2005/12/24/how\_do\_you\_display\_the\_progress\_of\_a\_long\_running\_action](http://rails.techno-weenie.net/question/2005/12/24/how_do_you_display_the_progress_of_a_long_running_action)
> 
> mad robby even gives some example code for this.
> 
> –  
> rick  
> [http://techno-weenie.net](http://techno-weenie.net)

---

<div class="post-metadata">

**Author:** ![guytavor](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5e9695/32.png) [@guytavor](https://www.ruby-forum.com/u/guytavor)\
**Post date:** [December 28, 2005, 5:23pm UTC](https://www.ruby-forum.com/t/execution-timeout/51170/4 "2005-12-28T17:23:31Z")

</div>

On 12/28/05, guy tavor [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> The link you specified does not relate to the same problem.  
> AM I missing something here?  
> will setting a session variable now and again prevent the execution  
> timeout?

I was just suggesting you offload the task to an external process and  
only report the status in the web app. But do what you like…

–  
rick  
[http://techno-weenie.net](http://techno-weenie.net)
