I have a scheduled server script, consisting of several perform script steps. It is scheduled to run every minute and has a time limit of 2 minutes, since it generally only takes a few seconds to run. Lately, it has been timing out several times per day.
In order to find out which sub-script is getting stuck, I created a log table. Then I created a script to create entries in the log table. I added a script step at the beginning and end of the scheduled script, as well as after each sub-script to log the status. The idea was if I can see the last step that completed, the next step must be the one that failed.
After letting the logging run long enough to log the script timing out a few times, I found that when it times out, the server had launched 2 or 3 copies of the script all at the same time! I thought maybe it had timed out before, and it was trying to catch up on missed schedules, but the several runs before the duplicates where complete.
Why is FMS 184.108.40.2066 launching my scheduled script multiple times?