26.06.2020, 15:23
Hi,
This is probably a silly question, but I want to understand the use case of resident scripts...
The LM manual states: "Resident scripts are executed infinite amount of times. Scripts are put into inactive state after each call and are resumed after delay timer expires."
I am trying to understand when to use a resident script. At the moment I have event-based scripts and scheduled scripts.
What is the difference between a scheduled script that runs every 5 minutes and a resident script with a sleep interval of 5 minutes (apart from the fact that the scheduled script will run at specific times)?
Many examples on the forum have resident scripts with a delay of 0. If these scripts run infinitely, don't they put a heavy load on the system?
Thanks!
This is probably a silly question, but I want to understand the use case of resident scripts...
The LM manual states: "Resident scripts are executed infinite amount of times. Scripts are put into inactive state after each call and are resumed after delay timer expires."
I am trying to understand when to use a resident script. At the moment I have event-based scripts and scheduled scripts.
What is the difference between a scheduled script that runs every 5 minutes and a resident script with a sleep interval of 5 minutes (apart from the fact that the scheduled script will run at specific times)?
Many examples on the forum have resident scripts with a delay of 0. If these scripts run infinitely, don't they put a heavy load on the system?
Thanks!