I’m trying to think about using the schedule helper, where I have tasks that run one after another in inconsistent blocks
If I have two blocks next to each other in the same schedule (ie one block ends at 7 am and the other starts at 7 am)), but they have different additional data attributes, does the schedule trigger off/on at the transition block? If so then how do I check when it’s truly off? If I check for an off state and do something then immediately override it with the on trigger of the next block are there any race conditions?
Similarly if I make separate schedules instead of different data attributes is there a race between the “off” of one schedule and the “on” of another? How do I deal with that beyond setting tasks a minute or so apart and hoping they finish? Do I have to keep state somewhere? Even then you presumably need a delay so you know which one triggers the mutex first.
This all seems confusingly complicated for just wanting to detect a state transition so I feel like I’m missing something