Jump to content


Photo

[Solved] Script timeout


  • Please log in to reply
2 replies to this topic

#1 rexmism

rexmism

    Newbie

  • Members
  • 4 posts

Posted 12 September 2020 - 02:33 PM

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?

 



#2 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 20,625 posts
  • Gender:Male

Posted 12 September 2020 - 07:26 PM

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.



#3 rexmism

rexmism

    Newbie

  • Members
  • 4 posts

Posted 15 September 2020 - 12:55 PM

Thanks for the info!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users