Skip to content

Commit 43e6640

Browse files
committed
Include timer name in future name
1 parent 9031064 commit 43e6640

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workflow/timer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func ScheduleTimer(ctx Context, delay time.Duration, opts ...timerOption) Future
6161

6262
timerCmd := command.NewScheduleTimerCommand(scheduleEventID, at, timerConfig.Name, traceContext)
6363
wfState.AddCommand(timerCmd)
64-
wfState.TrackFuture(scheduleEventID, workflowstate.AsDecodingSettable(contextvalue.Converter(ctx), fmt.Sprintf("timer:%v", delay), f))
64+
wfState.TrackFuture(scheduleEventID, workflowstate.AsDecodingSettable(contextvalue.Converter(ctx), fmt.Sprintf("timer:%s:%v", timerConfig.Name, delay), f))
6565

6666
cancelReceiver := &sync.Receiver[struct{}]{
6767
Receive: func(v struct{}, ok bool) {

0 commit comments

Comments
 (0)