Check Workflow Status

checkWorkflowStatus Mutation

Checks the status of a running workflow instance in the Temporal workflow engine.

Arguments

Name
Type
Description

input

CheckWorkflowStatusInput!

Input data for checking the workflow status

Return Type

CheckWorkflowStatusResponse - Contains the status information for the requested workflow.

Input Fields

CheckWorkflowStatusInput:

Field
Type
Description

id

String!

Required workflow ID to check status for

runID

String!

Required workflow run ID to check status for

Return Fields

CheckWorkflowStatusResponse:

Field
Type
Description

status

String!

Current status of the workflow (e.g., "RUNNING", "COMPLETED", "FAILED", "CANCELED")

workflow

TemporalWorkflow

Workflow instance details if available

Usage Example

JavaScript Example

Possible Status Values

  • RUNNING: The workflow is currently executing

  • COMPLETED: The workflow has completed successfully

  • FAILED: The workflow has failed with an error

  • CANCELED: The workflow was canceled

  • TERMINATED: The workflow was terminated

  • CONTINUED_AS_NEW: The workflow continued as a new execution

  • TIMED_OUT: The workflow timed out

Important Notes

  • This mutation queries the Temporal workflow engine for real-time status

  • Both id and runID are required to uniquely identify the workflow instance

  • The workflow instance must exist in the Temporal cluster for the query to succeed

  • Use this mutation to monitor long-running workflow executions

  • Status information includes execution details, results, and failure information if applicable

  • This is a read operation despite being a mutation (following GraphQL conventions for operations that might have side effects)

Last updated

Was this helpful?