hi team, How to know the intermediate running status of a workflow with go-sdk ? which design is recommended?
Hi there,
Can you clarify what do you mean by “intermediate running status”? Maybe you are looking for DescribeWorkflowExecution (Example)?
The most common way to return information about a workflow is by query.
assuming a workflow has three steps, how can we know which step the current workflow is running?
Why do you need this information? How is it going to be used?
The simplest solution would be to update a workflow variable after each step and the query returns a value of that variable.
For example: https://github.com/temporalio/samples-go/blob/main/query/query_workflow.go
1 Like