Skip to content

Commit 87cd01a

Browse files
authored
Early Return: Register activities (#385)
1 parent ea702ad commit 87cd01a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

early-return/worker/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ func main() {
1919
w := worker.New(c, earlyreturn.TaskQueueName, worker.Options{})
2020

2121
w.RegisterWorkflow(earlyreturn.Workflow)
22+
w.RegisterActivity(earlyreturn.CompleteTransaction)
23+
w.RegisterActivity(earlyreturn.CancelTransaction)
2224

2325
err = w.Run(worker.InterruptCh())
2426
if err != nil {

0 commit comments

Comments
 (0)