This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Scheduled script, seconds?
#1
Hello,

For the Scheduled script, is it possible to somehow tell it to run at specific second?
I have a script that runs at midnight 00:00:00.
And I have a second script that runs every hour at minute 00 that is depending on values from the first script.

I want to be sure that script 1 is executed and finnished, before the hourly script runs.
But I don't want to set the schedule to run on minute 01 every hour, but something like minute 00, 30 seconds.

Possible to push in another attribute in the minute colum? Like 00:30 to make this happen?
Reply
#2
Add os.sleep(30) to the script you want to delay.
Reply
#3
(15.11.2022, 08:39)admin Wrote: Add os.sleep(30) to the script you want to delay.

Ahh alright, so in the beginning of Script #2, I'll tell it to delay 30 seconds in the beginning?
Will os.sleep() put other script in queue or will the execute as normal during the sleep period?
For examepl if I have residential script or event-based, will they run as normal if other script run os.sleep()?
Reply
#4
os.sleep will affect only the script you are using it in.
------------------------------
Ctrl+F5
Reply
#5
Thanks guys! You are the best! Smile
Reply


Forum Jump: