Forum Archive

"The time for your script has expired"

ExParrot101

Hi— anybody else get that script timeout message? Is it behind a "syntax error" preventing execution of valid lines of code (like x=1)? This was a new text file, db.py.

ccc

Can you please provide us some code to run which exhibits this behavior?

peterh86

I see this occasionally. It appears in my ipad notifications window. From running Editorial.

It is not related to any syntax error. I see it at random times and have not been able to find what script if any causes it.

dgelessus

As far as I know this happens when you leave a thread running in background after the main thread has already stopped. This happened to me when I was playing around with httpserver, which runs the server in a background thread and can't easily be stopped.

filippocld223

if your script is running in background after 10 minutes it will return a syntax error because Apple limits app execution for more than 10 minutes...it's not a code error,just a limitation

drscheme

I want to create some kind of GPS logger which runs as long as I want. By this reason the behavior described in this thread is not desired. Is there any way how I can create a script that runs "forever"?

Regards!

ccc

console.set_idle_timer_disabled(flag)

Disable or enable the idle timer (which puts the device to sleep after a certain period of inactivity).