Skip to content

Commit 81c2fde

Browse files
committed
wrapper should use provided context
1 parent 60808e3 commit 81c2fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dbos/workflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func RegisterWorkflow[P any, R any](dbosCtx DBOSContext, fn GenericWorkflowFunc[
335335
}
336336

337337
opts = append(opts, withWorkflowName(fqn)) // Append the name so dbosCtx.RunAsWorkflow can look it up from the registry to apply registration-time options
338-
handle, err := dbosCtx.RunAsWorkflow(ctx, typedErasedWorkflow, typedInput, opts...)
338+
handle, err := ctx.RunAsWorkflow(ctx, typedErasedWorkflow, typedInput, opts...)
339339
if err != nil {
340340
return nil, err
341341
}

0 commit comments

Comments
 (0)