We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2d2dda commit a2dcb5dCopy full SHA for a2dcb5d
backend/monoprocess/monoprocess.go
@@ -113,7 +113,10 @@ func (b *monoprocessBackend) CompleteWorkflowTask(
113
continue
114
}
115
b.logger.DebugContext(ctx, "scheduling timer to notify workflow worker")
116
- time.AfterFunc(attr.At.Sub(time.Now()), func() { b.notifyWorkflowWorker(ctx) }) // TODO: cancel timer if the event gets cancelled
+ // Note that the worker will be notified even if the timer event gets
117
+ // cancelled. This is ok, because the poller will simply find no task
118
+ // and continue.
119
+ time.AfterFunc(attr.At.Sub(time.Now()), func() { b.notifyWorkflowWorker(context.Background()) })
120
121
for _, e := range workflowEvents {
122
if e.HistoryEvent.Type != history.EventType_WorkflowExecutionStarted &&
0 commit comments