Skip to content

Commit 80466fa

Browse files
committed
Revert "Evict execution context from cache when there is no workflow defination found."
This reverts commit 4f7fc9c.
1 parent 4f7fc9c commit 80466fa

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

internal/internal_task_handlers.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,6 @@ func (wth *workflowTaskHandlerImpl) ProcessWorkflowTask(
616616

617617
workflowContext, err := wth.getOrCreateWorkflowContext(task, historyIterator)
618618
if err != nil {
619-
// The WorkflowContext will be removed from the cache if an error is found
620-
// in workflowContext.err when calling Unlock() method.
621-
workflowContext.err = err
622-
defer workflowContext.Unlock()
623619
return nil, nil, err
624620
}
625621
defer workflowContext.Unlock()

0 commit comments

Comments
 (0)