const event = await client.getEvent(anEventId); if (event.runs.length === 0) { throw new Error("No runs"); }
The getEvent() method gets the event details for a given eventId.
getEvent()
Show Run
PENDING
CANCELED
SUCCESS
QUEUED
WAITING_ON_CONNECTIONS
PREPROCESSING
STARTED
FAILURE
TIMED_OUT
ABORTED
Was this page helpful?