Jump to content

[Solved] Script timeout


rexmism

Recommended Posts

I have a Python script that collects data. It runs once a minute and sleeps for 58 seconds to prevent account overloading, which seems to work fine. However, the script gets a timeout error, typically within an hour or two:

 

Timeout waiting for output from CGI script

 

The script writes to a log file every minute and also runs a print statement. Is there anything I can do to prevent these timeouts?

 

Link to comment
Share on other sites

You picked the Johnny server, which is the experimental server. What experimental means is it isn't suitable for production websites or production scripts. High load is common on Johnny, and is most likely causing your script to timeout. When you're done experimenting and testing you script you could consider moving to a production server like Tommy, or purchasing a VPS to host your script.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...