Oct 16, 2020
Posted by Ken

Hello,

As you have discovered you cannot alter a one-time scheduled event.  However, you can delete it and then create a new one.  Will the following work for you?

PUBLISH { name: “granite” } TO TOPIC “/myTopic/x” SCHEDULE {name: “graniteEvent”, interval: 1 minute}

// After some time you find out it needs to be reschedule so you do this:
DELETE system.scheduledevents WHERE name == “graniteEvent”
PUBLISH { name: “granite” } TO TOPIC “/myTopic/x” SCHEDULE {name: “graniteEvent”, interval: 10 minute}

Instead of “interval” you will probably want to use “occursAt”.

Will something like that work?

© Vantiq 2024 All rights reserved  •  Vantiq Corporation’s Privacy Policy and Cookie Policy