Instance methods
TriggerClient: getRun() instance method
The getRun()
method gets the details for a given Run.
These are the docs for Trigger.dev v2 which will be deprecated on January 31st, 2025. You probably want the v3 docs.
Parameters
The Run ID you want to get the details for
Returns
The id of the run
The status of the run. Can be one of the following: PENDING
, CANCELED
,
SUCCESS
, QUEUED
, WAITING_ON_CONNECTIONS
, PREPROCESSING
, STARTED
,
FAILURE
, TIMED_OUT
, ABORTED
The time the run started
The time the run completed
Whatever you returned from your run function, can be undefined
The tasks from the run
If there are more tasks, you can use this to get them