Skip to content

ResetWorkflowExecution returns "workflow not found" when targets an older run #10690

Description

@jiechenz

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.

Image

Steps to Reproduce the Problem

  1. Create a workflow wf and start run A and then run B
  2. Terminate and delete run B
  3. temporal workflow reset -w wf -r runA

Specifications

  • Version: 1.31.1
  • Platform: OS

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions