Check Workflow Status
checkWorkflowStatus Mutation
Checks the status of a running workflow instance in the Temporal workflow engine.
Arguments
input
CheckWorkflowStatusInput!
Input data for checking the workflow status
Return Type
CheckWorkflowStatusResponse - Contains the status information for the requested workflow.
Input Fields
CheckWorkflowStatusInput:
id
String!
Required workflow ID to check status for
runID
String!
Required workflow run ID to check status for
Return Fields
CheckWorkflowStatusResponse:
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
idandrunIDare required to uniquely identify the workflow instanceThe 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?
