Skip to content

Latest commit

 

History

History

child-workflow-continue-as-new

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Child Workflow Continue-As-New

This sample demonstrates that when a Child Workflow calls Continue-As-New it is not visible by a parent. Parent Workflow Executions receive a notification that a Child Workflow Execution has completed only when the full execution has completed, failed, or timed out.

This feature is very useful when there is a need to process a large set of data. The Child Execution can iterate over the data set, calling Continue-As-New periodically without polluting the parents' history.

Make sure the Temporal Server is running locally.

Start the Worker:

go run child-workflow-continue-as-new/worker/main.go

Start the Parent Workflow Execution:

go run child-workflow-continue-as-new/starter/main.go