Pending Actions (Server Jobs)
Pending Action records is how we track job progress and results. Most actions will return a Pending Action ID that you can use to check the status of the job. As a result, it's important to understand how to use the Pending Action API.
Data model
Below is the data model for a Pending Action record. These records are one of our oldest and don't have a tidied up v3 variant yet.
When checking for completion, you can see if the .Status stops equaling IN_PROGRESS.
The Result property is the primary candidate for a v3 overhaul where it returns a stringified JSON object you have to parse yourself.
This is the result of us migrating from a singular result line to a more complex result object. Some of our oldest jobs may return a non-JSON string in this field.
Request the record
We recommend requesting the Pending Action record every 5 seconds until it's marked as no longer in progress.
Get Pending Action by ID
Request progress messages
If you'd like expanded information about the progress of a Pending Action, you can request for progress messages.
Get Pending Action Progress Messages
Cancel a Pending Action
If you need to cancel a Pending Action, you can do so with this request.