Get run snapshot

getRunSnapshot(command: RunsGetRunSnapshotCommand!): RunsSnapshot!

Arguments

ArgumentTypeRequiredDescription
commandRunsGetRunSnapshotCommand!YesTask and workflow snapshots capture a fixed event cutoff and allow up to 5000 events or 10 MiB. Larger histories return 400 RUN_SNAPSHOT_LIMIT_EXCEEDED; use paginated run events.

Input fields

command

RunsGetRunSnapshotCommand

FieldTypeRequired
runIdID!Yes

Response

Returns RunsSnapshot!. Open the type for its fields and nested types.

FieldTypeDescription
afterEventIdFloat!Cursor for continuing event reads after this snapshot.
events[RunsSnapshotEvents!]!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query GetRunSnapshot($command: RunsGetRunSnapshotCommand!) {
  getRunSnapshot(command: $command) {
    afterEventId
  }
}
json
{
  "command": {
    "runId": "11111111-1111-4111-8111-111111111111"
  }
}