Since we didn't get an 'official' answer yet and I had some runtime issues fixed, I did a test to attempt to understand how it works.
I scheduled a script that would take 20 minutes (with a Delay command) to execute and then scheduled another very quick one, just a simple "Hello World". The HelloWorld script was set to run every 5 minutes and to start one minute after the first (longer) one, just so some schedules would be missed. Here are the results:
- It seems that every schedule that was missed due to the runtime being already in use was just postponed and executed as soon as the runtime was available.
- After all postponed schedules were executed, the regular (5 minutes interval) schedule was resumed.
Here you can see the logs:
Would be nice if someone could confirm if this is how it works and explain how to change this behavior, if possible, to something like keeping only one of the postponed schedules.
------------------------------
Vinicius Marques
------------------------------
Original Message:
Sent: Fri September 03, 2021 08:35 AM
From: Vinicius Marques
Subject: How scheduling works when some schedules are missed
Hi,
I would like to confirm how scheduling would work on the following scenario: There are two schedules for different scripts, one runs one time/day and the other runs multiple times. There is only one Runtime license available. The first one could take many hours to complete, so some of the recurrent schedules of the second would be missed (runtime being used).
Here are some questions:
- What would happen after the first script finishes? The second script would run once for every schedule that was missed or only once for the latest postponed schedule and then follow the "correct" interval?
- If the first script ends after the configured "Stop time" of the second script, will the second script run at least once since every schedule was missed during the day?
Regards,
------------------------------
Vinicius Marques
------------------------------