Skip to content

Commit

Permalink
Release with no error
Browse files Browse the repository at this point in the history
  • Loading branch information
prathyushpv committed Jan 16, 2025
1 parent 827205c commit 4707ba8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service/history/timer_queue_active_task_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,11 @@ func (t *timerQueueActiveTaskExecutor) executeWorkflowBackoffTimerTask(
return err
}
if mutableState == nil {
release(nil)
return consts.ErrWorkflowExecutionNotFound
}
if !mutableState.IsWorkflowExecutionRunning() {
release(nil)
return consts.ErrWorkflowCompleted
}

Expand Down Expand Up @@ -479,6 +481,7 @@ func (t *timerQueueActiveTaskExecutor) executeWorkflowBackoffTimerTask(

if mutableState.HadOrHasWorkflowTask() {
// already has workflow task
release(nil)
return errNoTimerFired
}

Expand Down

0 comments on commit 4707ba8

Please sign in to comment.