lost scheduled action

Posted on
Sat Sep 05, 2015 1:46 pm
ken_jacobs offline
Posts: 155
Joined: Jul 23, 2005

lost scheduled action

It appears that I lose a scheduled action if I have incoming motion detector state changes at the same time. This also happens if Indigo is executing a number of actions from another scheduled event in the same timeframe. In other words Indigo apparently ignores the start of a scheduled event if preoccupied with other activities.

Posted on
Sun Sep 06, 2015 9:51 am
jay (support) offline
Site Admin
User avatar
Posts: 15473
Joined: Mar 19, 2008
Location: Austin, Texas

Re: lost scheduled action

That's extremely unlikely - actions are executed in separate threads from those that process schedules and those that receive incoming events from the various protocols. We specifically architected the system so that there are no bottlenecks like that.

What errors/log entries are showing up in the Event Log when one of these schedules fails to execute? How do you know that the schedule isn't executing? Do those schedules have any conditions that may be stopping them from executing? What specific actions is the schedule that's not running executing, and are you sure the actions themselves aren't what's failing (due to protocol issues)?

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Sep 06, 2015 2:37 pm
durosity offline
User avatar
Posts: 3765
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: lost scheduled action

You don't happen to have any embedded apple scripts running causing the system to hang momentarily?


Sent from my iPad using Tapatalk

Computer says no.

Posted on
Sun Sep 06, 2015 7:15 pm
ken_jacobs offline
Posts: 155
Joined: Jul 23, 2005

Re: lost scheduled action

I was executing an embedded AppleScript script at the time of the problem. Is there an issue with blocking out other Indigo activities at the same time when running a script?

Posted on
Mon Sep 07, 2015 9:16 am
jay (support) offline
Site Admin
User avatar
Posts: 15473
Joined: Mar 19, 2008
Location: Austin, Texas

Re: lost scheduled action

Embedded AppleScripts must execute on the main server thread (OS restriction), so a misbehaving or long running script will delay main thread operation but it won't stop anything nor will any incoming messages be missed since those run in separate threads. Any AppleScript that has the potential of hanging up for any length of time should be run as an external script which will cause it to be executes in a separate process from the server.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Sep 07, 2015 9:33 am
ken_jacobs offline
Posts: 155
Joined: Jul 23, 2005

Re: lost scheduled action

Could an embedded script cause a scheduled Indigo activity to be missed?

Posted on
Mon Sep 07, 2015 10:19 am
jay (support) offline
Site Admin
User avatar
Posts: 15473
Joined: Mar 19, 2008
Location: Austin, Texas

Re: lost scheduled action

No. That is, the schedule would execute. However, the actions as a result of the schedule execution might get delayed until the AppleScript finishes executing depending on what the actions are.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest