997
}
998
999
>
func deleteStateMachineTimersByPath(execInfo *persistencespb.WorkflowExecutionInfo, path []hsm.Key) {
task_generator.go
1000
>
trimmedTimers := make([]*persistencespb.StateMachineTimerGroup, 0, len(execInfo.StateMachineTimers))
1001
>
1002
>
for _, group := range execInfo.StateMachineTimers {
1003
>
trimmedInfos := make([]*persistencespb.StateMachineTaskInfo, 0, len(group.Infos))
1004
>
for _, info := range group.GetInfos() {
1005
>
if !isPathAffectedByDelete(path, info.GetRef().GetPath()) {
1006
trimmedInfos = append(trimmedInfos, info)
1007
}
1008
}
1010
trimmedTimers = append(trimmedTimers, &persistencespb.StateMachineTimerGroup{
1011
Infos: trimmedInfos,