Skip to content

Latest commit

 

History

History

early-return

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Early-Return Sample

This sample demonstrates an early-return from a workflow.

By utilizing Update-with-Start, a client can start a new workflow and synchronously receive a response mid-workflow, while the workflow continues to run to completion.

See shopping cart for Update-with-Start being used for lazy initialization.

Steps to run this sample:

  1. Run a Temporal service.

    NOTE: frontend.enableExecuteMultiOperation=true must be configured for the server in order to use Update-with-Start. For example:

temporal server start-dev --dynamic-config-value frontend.enableExecuteMultiOperation=true
  1. Run the following command to start the worker
go run early-return/worker/main.go
  1. Run the following command to start the example
go run early-return/starter/main.go