Expected Behavior
Resetting a workflow by an explicit runId should operate on that run.
If the workflow has no current execution — e.g. its current run was deleted while older runs still exist — there is no current run to terminate, so reset should create the new run from the base run and make it the current execution.
Actual Behavior
Reset always resolves the current execution first. When the current_executions record is missing, reset returns "workflow not found" regardless of the runId provided — even though the older run named by runId still exists.
Steps to Reproduce the Problem
- Create a workflow
wf and start run A and then run B
- Terminate and delete run B
temporal workflow reset -w wf -r runA
Specifications
- Version: 1.31.1
- Platform: OS
Expected Behavior
Resetting a workflow by an explicit
runIdshould operate on that run.If the workflow has no
current execution— e.g. its current run was deleted while older runs still exist — there is no current run to terminate, so reset should create the new run from the base run and make it the current execution.Actual Behavior
Reset always resolves the current execution first. When the
current_executionsrecord is missing, reset returns "workflow not found" regardless of therunIdprovided — even though the older run named byrunIdstill exists.Steps to Reproduce the Problem
wfand start run A and then run Btemporal workflow reset -w wf -r runASpecifications