What happens if I query completed workflow with a workflowId that has been used by multiple completed workflows?

I am wondering which completed workflow would respond to the query?

If you use only workflow id:
If there is an execution running, it will be the one queried, otherwise the latest completed execution is picked (according to end/completion time).

You can use workflowid and runid to query a specific execution of you want.

1 Like