Forums

Change timeout value in web server config file

Is it possible to change the timeout value for a website. I have a Django project that feeds data from a form to a script that takes quite a long time to run (1-5 minutes) and then returns a detailview with the results of that scripts. I have problem with getting a request timeout. Is it possibly to adjust the timeout value. If so, how/where can I do that?

Thanks!

Unfortunately the 5min timeout is not adjustable. You will have to say offload the work into a queue and get the work to run in the background.

A simple version would be to set up a task that runs every 5 minutes that checks if any data is uploaded and then processes it, then spits out the result into a database. Then your webapp can just show the results when they become available.

chmod +x /home/myusername/myproject/myscript.rb

@Anuragtricks is there anything we could help you with?