cancellation

package
v0.0.0-...-e814acc 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: 6 Imported by: 0

README

Cancellation

Make sure the Temporal Server is running locally.

From the root of the project, start a Worker:

go run cancellation/worker/main.go

Start the Workflow Execution:

go run cancellation/starter/main.go

Cancel the Workflow Execution:

go run cancellation/cancel/main.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func YourWorkflow

func YourWorkflow(ctx workflow.Context) error

@@@SNIPSTART samples-go-cancellation-workflow-definition YourWorkflow is a Workflow Definition that shows how it can be canceled.

Types

type Activities

type Activities struct{}

@@@SNIPSTART samples-go-cancellation-activity-definition

func (*Activities) ActivityToBeCanceled

func (a *Activities) ActivityToBeCanceled(ctx context.Context) (string, error)

func (*Activities) ActivityToBeSkipped

func (a *Activities) ActivityToBeSkipped(ctx context.Context) error

func (*Activities) CleanupActivity

func (a *Activities) CleanupActivity(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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