workflow_worker

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMaxConcurrentTasksLimit

func WithMaxConcurrentTasksLimit(limit int) func(*WorkflowWorkerOptions)

func WithPollerInitialBackoffInterval

func WithPollerInitialBackoffInterval(duration time.Duration) func(*WorkflowWorkerOptions)

func WithPollerMaxBackoffInterval

func WithPollerMaxBackoffInterval(duration time.Duration) func(*WorkflowWorkerOptions)

Types

type WorkflowWorker

type WorkflowWorker struct {
	// contains filtered or unexported fields
}

func NewWorkflowWorker

func NewWorkflowWorker(
	name string,
	be backend.Backend,
	registry *registry.WorkflowRegistry,
	dataConverter dataconverter.DataConverter,
	logger *zap.Logger,
	opts ...func(options *WorkflowWorkerOptions),
) *WorkflowWorker

func (*WorkflowWorker) Start

func (w *WorkflowWorker) Start(ctx context.Context)

func (*WorkflowWorker) Stop

func (w *WorkflowWorker) Stop(ctx context.Context)

type WorkflowWorkerOptions

type WorkflowWorkerOptions struct {
	WorkerOptions *worker.WorkerOptions
}

func NewWorkflowWorkerOptions

func NewWorkflowWorkerOptions() *WorkflowWorkerOptions

Jump to

Keyboard shortcuts

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