retryactivity

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

README

Steps to run this sample:

  1. You need a Temporal service running. See details in README.md
  2. Run the following command to start the worker
go run retryactivity/worker/main.go
  1. Run the following command to start the example
go run retryactivity/starter/main.go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchProcessingActivity

func BatchProcessingActivity(ctx context.Context, firstTaskID, batchSize int, processDelay time.Duration) error

BatchProcessingActivity process batchSize of jobs starting from firstTaskID. This activity will heartbeat to report progress, and it could fail sometimes. Use retry policy to retry when it failed, and resume from reported progress.

func RetryWorkflow

func RetryWorkflow(ctx workflow.Context) error

RetryWorkflow workflow definition

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