How do I cancel a pending "_delayed_action" scheduled action

Posted on
Tue Oct 27, 2015 3:21 pm
alang_94526 offline
Posts: 245
Joined: Apr 13, 2009

How do I cancel a pending "_delayed_action" scheduled action

I generally try to avoid using the "Delay by #" feature in Actions especially if the delays are long because I've never been able to figure out how to cancel them cleanly once they are initiated if the need arises.
I have a simple test case where I trigger on an event and toggle a variable after 2 minutes using the "Delay By" option.
In the Schedule window, I see a "_delayed_action_57" scheduled event for 2 minutes from when it was initiated which will toggle the variable.
However, if I want to cancel this other than by selecting that scheduled event and deleting it, how would I do it?

Posted on
Tue Oct 27, 2015 3:36 pm
durosity offline
User avatar
Posts: 3765
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

How do I cancel a pending "_delayed_action" scheduled action

This may help:

http://wiki.indigodomo.com/doku.php?id= ... ed_actions

For anything I do that could need that I have mini Python scripts setup to remove the relevant ones from the list. I find this the easiest way to use them but YMMV.


Sent from my iPad using Tapatalk

Computer says no.

Posted on
Tue Oct 27, 2015 3:47 pm
alang_94526 offline
Posts: 245
Joined: Apr 13, 2009

Re: How do I cancel a pending "_delayed_action" scheduled ac

That link is exactly what I was looking for. I didn't realize it existed. Canceling a delay initiated by a trigger is perfect for what I'm trying to do
Thanks a lot.

Posted on
Thu Jan 14, 2016 2:15 pm
alang_94526 offline
Posts: 245
Joined: Apr 13, 2009

Re: How do I cancel a pending "_delayed_action" scheduled ac

I have another Schedule question.
How do I set up a time offset to the schedule repeat option?

To set up a repeating schedule event, I use the "Every" option e.g. schedule this event every 15 minutes.
However, this will schedule this repeating action at 12:00, 12:15, 12:30, 12:45, 13:00.....
I am looking for a way to add an offset of say, 3 to the repeat rate so I could make it 12:03, 12:18, 12:33, 12:48, 13:03.....

Any ideas how to implement that?

Posted on
Thu Jan 14, 2016 3:36 pm
jay (support) offline
Site Admin
User avatar
Posts: 15473
Joined: Mar 19, 2008
Location: Austin, Texas

Re: How do I cancel a pending "_delayed_action" scheduled ac

Set the start time of the schedule to 12:03 rather than 12:00. If you always want randomization, then add the randomization in the Time section.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Jan 14, 2016 4:21 pm
alang_94526 offline
Posts: 245
Joined: Apr 13, 2009

Re: How do I cancel a pending "_delayed_action" scheduled ac

That's really what my question is - how do you set the start time?

Posted on
Thu Jan 14, 2016 4:37 pm
jay (support) offline
Site Admin
User avatar
Posts: 15473
Joined: Mar 19, 2008
Location: Austin, Texas

Re: How do I cancel a pending "_delayed_action" scheduled ac

Oh, right, you're doing every. Unfortunately, every is always scheduled to start at midnight and calculates from there. As I said, you can add a little randomization so that each time through it will be slightly different. Another thing you can do is delay your actions by 3 minutes - effectively making them execute with the 3 minute offset you want.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Thu Jan 14, 2016 4:44 pm
alang_94526 offline
Posts: 245
Joined: Apr 13, 2009

Re: How do I cancel a pending "_delayed_action" scheduled ac

That could work though for complicated action, since the delay is a hard-wired number rather than a variable, it is a little inflexible.
Though I was hoping for something simpler I can make it work.
Thanks for the quick replies.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest