This note is in Hasura.Eventing.ScheduledTrigger.
Scheduled events move between six different states over the course of their lifetime, as represented by the following flowchart:
┌───────────┐ ┌────────┐ ┌───────────┐
│ scheduled │─(1)─→│ locked │─(2)─→│ delivered │
└───────────┘ └────────┘ └───────────┘
↑ │ ┌───────┐
└────(3)───────┼─────(4)──→│ error │
│ └───────┘
│ ┌──────┐
└─────(5)──→│ dead │
└──────┘
When a scheduled event is first created, it starts in the ‘scheduled’ state, and it can transition to other states in the following ways: