worker

package
v0.19.913 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	worker.Worker
}

func New

func New(params WorkerParams) (*Worker, error)

type WorkerParams

type WorkerParams struct {
	fx.In

	Cfg             *internal.Config
	Tclient         temporalclient.Client
	Wkflows         *Workflows
	Acts            *activities.Activities
	L               *zap.Logger
	LC              fx.Lifecycle
	Interceptors    []interceptor.WorkerInterceptor `group:"interceptors"`
	SharedActs      *workflows.Activities
	SharedWorkflows *workflows.Workflows
}

type Workflows

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

func NewWorkflows

func NewWorkflows(params WorkflowsParams) (*Workflows, error)

func (Workflows) All

func (w Workflows) All() []any

func (*Workflows) EventLoop

func (w *Workflows) EventLoop(ctx workflow.Context, req eventloop.EventLoopRequest, pendingSignals []*signals.Signal) error

func (*Workflows) ListWorkflowFns added in v0.19.850

func (w *Workflows) ListWorkflowFns() []any

ListWorkflowFns returns the list of workflow functions for registration

func (*Workflows) Metrics

func (w *Workflows) Metrics(ctx workflow.Context) error

func (*Workflows) Promotion

func (w *Workflows) Promotion(ctx workflow.Context, _ signals.RequestSignal) error

@temporal-gen-v2 workflow @execution-timeout 30m @task-timeout 30s

func (*Workflows) PurgeStaleData

func (w *Workflows) PurgeStaleData(ctx workflow.Context) error

func (*Workflows) RestartOrgEventLoops

func (w *Workflows) RestartOrgEventLoops(ctx workflow.Context) error

func (*Workflows) RestartOrgRunners

func (w *Workflows) RestartOrgRunners(ctx workflow.Context) error

func (*Workflows) Seed

@temporal-gen-v2 workflow @execution-timeout 10m @task-timeout 30s

func (*Workflows) TerminateEventLoops

func (w *Workflows) TerminateEventLoops(ctx workflow.Context, _ signals.RequestSignal) error

@temporal-gen-v2 workflow @execution-timeout 10m @task-timeout 30s

type WorkflowsParams

type WorkflowsParams struct {
	fx.In

	V             *validator.Validate
	Cfg           *internal.Config
	MetricsWriter metrics.Writer
	EVClient      teventloop.Client
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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