I was trying to reset workflow to particular event id using the tctl command as pointed here but it was throwing me:
rpc error: code = InvalidArgument desc = nDCStateRebuilder unable to rebuild mutable state to event ID: 260, version: 0, this event must be at the boundary
The event ID I used is that of WorkflowTaskCompleted event. Could I get an example of how to reset a workflow to a prticular even ID ?
Thanks for replying. We are using tctl v1.9.1, we are not resetting it via codebase, we are running the tctl command directly, Tried for WorkflowTaskStarted event as well, still getting the same issue.
where event 9 is a “WorkflowTaskStarted” event.
Another question, did you fix the workflow definition and restart the worker before trying to reset?Otherwise your workflow will still run in the same issue as before the reset attempt.
Is it mandatory to restart the worker before reset? If I restart worker before reset I got this error thread 'tokio-runtime-worker' panicked at 'Workflow machines must exist, we just created/updated them: WorkflowMissingError { run_id: "e51b8b04-016e-45e1-8fb2-bd789a925d49" }', sdk-core\src\workflow\workflow_tasks\mod.rs:304:14
I am facing issue with workflow reset. I am using this tctl command tctl workflow reset -w 27ffe419-9701-415d-acb5-de234ad44668 --event_id 3 --reason 'reset'
In temporal ui history it shows workflow reset with new run id. But my workflow code didn’t execute actually. It just updated history. Please check attachment