More Than Once Per Day Schedule?

I’d like to trigger my app to run at certain times, but it seems only the last schedule is being saved. Relevant code looks like this:

	schedule(start_time, Handler)
	schedule(end_time, Handler)

Only the “end_time” is being saved. I tried putting “, [overwrite: false]” after Handler, but that did nothing.

The documentation for schedule doesn’t seem to deal with this, unless I am reading it wrong.

Either have the handler method subscribe again for the next event, or use two distinct methods/handlers. Only one schedule per callback method (aka handler), and a total max of four schedules per app.

schedule(start_time, startHandler)
schedule(end_time, endHandler)

[..]

def startHandler(evt) {
   [..]
}

def endHandler(evt) {
   [..]
}
1 Like

Silly, but thanks!