On Execution Started

View as Markdown
Fired when the execution leaves the queue and the engine starts working. It is the moment the run stops being a promise: from here on there is a session being opened against the source. `status_reason` is `RUNNING` — nothing has been retrieved yet, and nothing is readable yet. **Subscribe to it for the clock, not for the data.** Nothing about this event requires you to act: it is what separates *waiting in the queue* from *working*, which is the difference between a slow platform and a busy one when somebody asks you why a case is taking so long. <CardGroup cols={2}> <Card title="Mark the case as in progress" icon="fa-solid fa-play"> Somebody is now logging in on your customer's behalf. If your product shows a state, this is when it stops saying *queued*. </Card> <Card title="Start your own clock" icon="fa-solid fa-stopwatch"> The gap between `202 Accepted` and this event is **queue time** — it depends on load and on whether the execution can pause for a person. Measure the work from here, not from the request. </Card> </CardGroup> <Note> **Not every execution reaches this event.** One rejected at validation, or aborted before it was ever picked up, goes straight to `ended`. Treat `ended` as the only event you are guaranteed to receive. </Note>