Ui Batch reset doesn't re-run last failed activity

Hello!
A password change caused a bunch of workflows to fail with the same error. 401: Unauthorized.
The pw got fixed and it’s now working. Next step is to get the wflows running again.

I tried to use the bulk reset on the temporal web ui. It gives me the two options:

  1. First Workflow task
  2. Last Workflow task

If I chose #1, I believe it will start from the very beginning and execute all activities as if they were new. I don’t want to repeat all activities to avoid repeated effects in the other systems.

If I chose #2, the resulting effect appears to be as if it reapplied the last activity without running it again. In my case, the 401 error shows up again even though the activity works if I rerun it via non-batch reset by resetting to the point before the failed activity starts, which is the point where the previous activity successfully completed (WorkflowTaskCompleted)

Consider this sequence:
Event1 xyz

Event10 WorkflowTaskScheduled
Event11 WorkflowTaskStarted
Event12 WorkflowTaskCompleted
Event13 ActivityTaskScheduled
Event14 ActivityTaskStarted
Event15 ActivityTaskFailed

Batch reset style #2 (Last Workflow task) seems to reapply the workflow tasks and not the activity tasks starting with Event13.

I’m probably confused about something fundamental here but the effect is as described and I need a way to reset multiple to actually re-run the activities. Is there a way to do that?

Thank you!

What’s the full event history? If you want execution created by reset to re-run this activity, you’d set reset point to events 11 or 12

Note that ui being able to pick different workflow tasks with batch api is not really possible. You could be resetting executions of different workflow types, or even if same workflow type executions that are at different points of their executions. So for batch reset you really only have FirstWorkflowTask and LastWorkflow task options.