branch

package
v0.0.0-...-94a9b73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

Parallel Activities

Make sure the Temporal Server is running locally.

From the root of the project, start a Worker:

go run branch/worker/main.go

Start the Workflow Execution:

go run branch/starter/main.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SampleActivity

func SampleActivity(input string) (string, error)

@@@SNIPSTART samples-go-branch-activity-definition SampleActivity is a Temporal Activity Definition

func SampleBranchWorkflow

func SampleBranchWorkflow(ctx workflow.Context, totalBranches int) (result []string, err error)

@@@SNIPSTART samples-go-branch-workflow-definition SampleBranchWorkflow is a Temporal Workflow Definition This Workflow Definition shows how to call multiple Activities in parallel. The number of branches is controlled by a passed in parameter.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL