Tide · Reliability

Disabled reflexes (enabled: false)

enabled: false disables a reflex’s triggers: Tide has no pause method, so the host sets the flag and calls load again. While disabled, the reflex’s clock creates no occurrences and still advances, so no missed firings are pending when it is enabled again. fire still executes it, because enabled gates triggers and a manual fire is not one.

Reflex, as loaded on Tuesday
{
  id: 'house.notice',
  intent: 'Mail the house notice at 18:00.',
  on: {
    clock: { every: 'day', at: '18:00', tz: 'Europe/Vienna' },
  },
  effect: { name: 'mail.send', input: { to: 'everyone' } },
  enabled: false,
}
Three days, step by step
Enabled flag, mail sent so far
{ enabled: false, mailed: [] }
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.