testworker

package
v0.19.1306 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: AGPL-3.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	RetryWithoutTargetSignalType      signal.SignalType = "test-flow-retry-without-target"
	GroupRetryWithoutTargetSignalType signal.SignalType = "test-flow-group-retry-without-target"
)
View Source
const ApprovalInnerSignalType signal.SignalType = "test-flow-approval-inner"
View Source
const AutoRetryBudgetSignalType signal.SignalType = "test-flow-auto-retry-budget"
View Source
const AutoRetrySignalType signal.SignalType = "test-flow-auto-retry"
View Source
const CancellableTestSignalType signal.SignalType = "test-flow-cancellable"
View Source
const CountdownGroupSignalType signal.SignalType = "test-flow-countdown-group"
View Source
const CountdownSignalType signal.SignalType = "test-flow-countdown"
View Source
const DelayedCloneManualRetrySignalType signal.SignalType = "test-flow-delayed-clone-manual-retry"
View Source
const FailSignalType signal.SignalType = "test-flow-fail"
View Source
const ManualRetryGroupCountdownSignalType signal.SignalType = "test-flow-manual-retry-group-countdown"
View Source
const ManualRetrySignalType signal.SignalType = "test-flow-manual-retry"
View Source
const ManualRetryThenBlockSignalType signal.SignalType = "test-flow-manual-retry-then-block"
View Source
const PlanApplyFailSignalType signal.SignalType = "test-flow-plan-apply-fail"
View Source
const PolicyEvalApprovalSignalType signal.SignalType = "test-flow-policy-eval-approval"
View Source
const RetryGroupSignalType signal.SignalType = "test-flow-retry-group"
View Source
const SkipGroupApprovalSignalType signal.SignalType = "test-flow-skipgroup-approval"
View Source
const SkippableFailSignalType signal.SignalType = "test-flow-skippable-fail"
View Source
const SlowSignalType signal.SignalType = "test-flow-slow"
View Source
const SuccessSignalType signal.SignalType = "test-flow-success"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApprovalInnerSignal added in v0.19.1163

type ApprovalInnerSignal struct{}

func (*ApprovalInnerSignal) Execute added in v0.19.1163

func (*ApprovalInnerSignal) SleepAfter added in v0.19.1163

func (s *ApprovalInnerSignal) SleepAfter() time.Duration

func (*ApprovalInnerSignal) Type added in v0.19.1163

func (*ApprovalInnerSignal) Validate added in v0.19.1163

type AutoRetryBudgetSignal added in v0.19.1197

type AutoRetryBudgetSignal struct {
	StepID string `json:"step_id,omitempty"`
	FlowID string `json:"flow_id,omitempty"`
}

func (*AutoRetryBudgetSignal) AutoRetry added in v0.19.1197

func (s *AutoRetryBudgetSignal) AutoRetry() bool

func (*AutoRetryBudgetSignal) Execute added in v0.19.1197

func (s *AutoRetryBudgetSignal) Execute(ctx workflow.Context) error

func (*AutoRetryBudgetSignal) MaxAutoRetries added in v0.19.1197

func (s *AutoRetryBudgetSignal) MaxAutoRetries(workflow.Context) int

func (*AutoRetryBudgetSignal) MaxRetries added in v0.19.1197

func (s *AutoRetryBudgetSignal) MaxRetries() int

func (*AutoRetryBudgetSignal) RetryGroup added in v0.19.1197

func (s *AutoRetryBudgetSignal) RetryGroup() bool

func (*AutoRetryBudgetSignal) SetStepContext added in v0.19.1197

func (s *AutoRetryBudgetSignal) SetStepContext(stepID, flowID string)

func (*AutoRetryBudgetSignal) SleepAfter added in v0.19.1197

func (s *AutoRetryBudgetSignal) SleepAfter() time.Duration

func (*AutoRetryBudgetSignal) Type added in v0.19.1197

func (*AutoRetryBudgetSignal) Validate added in v0.19.1197

type AutoRetrySignal

type AutoRetrySignal struct {
	FailUntilRetryIndex int `json:"fail_until_retry_index"`
}

func (*AutoRetrySignal) AutoRetry

func (s *AutoRetrySignal) AutoRetry() bool

func (*AutoRetrySignal) Execute

func (s *AutoRetrySignal) Execute(workflow.Context) error

func (*AutoRetrySignal) MaxRetries

func (s *AutoRetrySignal) MaxRetries() int

func (*AutoRetrySignal) SleepAfter

func (s *AutoRetrySignal) SleepAfter() time.Duration

func (*AutoRetrySignal) Type

func (s *AutoRetrySignal) Type() signal.SignalType

func (*AutoRetrySignal) Validate

func (s *AutoRetrySignal) Validate(workflow.Context) error

type CancellableTestSignal

type CancellableTestSignal struct{}

func (*CancellableTestSignal) Cancel

func (*CancellableTestSignal) Execute

func (s *CancellableTestSignal) Execute(ctx workflow.Context) error

func (*CancellableTestSignal) SleepAfter

func (s *CancellableTestSignal) SleepAfter() time.Duration

func (*CancellableTestSignal) Type

func (*CancellableTestSignal) Validate

type CountdownGroupSignal

type CountdownGroupSignal struct {
	SucceedAtRetry int    `json:"succeed_at_retry"`
	StepID         string `json:"step_id,omitempty"`
	FlowID         string `json:"flow_id,omitempty"`
}

func (*CountdownGroupSignal) AutoRetry

func (s *CountdownGroupSignal) AutoRetry() bool

func (*CountdownGroupSignal) Execute

func (s *CountdownGroupSignal) Execute(ctx workflow.Context) error

func (*CountdownGroupSignal) MaxRetries

func (s *CountdownGroupSignal) MaxRetries() int

func (*CountdownGroupSignal) RetryGroup

func (s *CountdownGroupSignal) RetryGroup() bool

func (*CountdownGroupSignal) SetStepContext

func (s *CountdownGroupSignal) SetStepContext(stepID, flowID string)

func (*CountdownGroupSignal) SleepAfter

func (s *CountdownGroupSignal) SleepAfter() time.Duration

func (*CountdownGroupSignal) Type

func (*CountdownGroupSignal) Validate

type CountdownSignal

type CountdownSignal struct {
	SucceedAtRetry int    `json:"succeed_at_retry"`
	StepID         string `json:"step_id,omitempty"`
	FlowID         string `json:"flow_id,omitempty"`
}

func (*CountdownSignal) AutoRetry

func (s *CountdownSignal) AutoRetry() bool

func (*CountdownSignal) Execute

func (s *CountdownSignal) Execute(ctx workflow.Context) error

func (*CountdownSignal) MaxRetries

func (s *CountdownSignal) MaxRetries() int

func (*CountdownSignal) SetStepContext

func (s *CountdownSignal) SetStepContext(stepID, flowID string)

func (*CountdownSignal) SleepAfter

func (s *CountdownSignal) SleepAfter() time.Duration

func (*CountdownSignal) Type

func (s *CountdownSignal) Type() signal.SignalType

func (*CountdownSignal) Validate

func (s *CountdownSignal) Validate(workflow.Context) error

type DelayedCloneManualRetrySignal added in v0.19.1214

type DelayedCloneManualRetrySignal struct{}

func (*DelayedCloneManualRetrySignal) AutoRetry added in v0.19.1214

func (s *DelayedCloneManualRetrySignal) AutoRetry() bool

func (*DelayedCloneManualRetrySignal) Clone added in v0.19.1214

func (*DelayedCloneManualRetrySignal) Execute added in v0.19.1214

func (*DelayedCloneManualRetrySignal) MaxAutoRetries added in v0.19.1214

func (*DelayedCloneManualRetrySignal) MaxRetries added in v0.19.1214

func (s *DelayedCloneManualRetrySignal) MaxRetries() int

func (*DelayedCloneManualRetrySignal) SleepAfter added in v0.19.1214

func (*DelayedCloneManualRetrySignal) Type added in v0.19.1214

func (*DelayedCloneManualRetrySignal) Validate added in v0.19.1214

type FailSignal

type FailSignal struct {
	Reason string `json:"reason"`
}

func (*FailSignal) Execute

func (s *FailSignal) Execute(workflow.Context) error

func (*FailSignal) SleepAfter

func (s *FailSignal) SleepAfter() time.Duration

func (*FailSignal) Type

func (s *FailSignal) Type() signal.SignalType

func (*FailSignal) Validate

func (s *FailSignal) Validate(workflow.Context) error

type GroupRetryWithoutTargetSignal added in v0.19.1303

type GroupRetryWithoutTargetSignal struct {
	RetryWithoutTargetSignal
}

func (*GroupRetryWithoutTargetSignal) RetryGroup added in v0.19.1303

func (s *GroupRetryWithoutTargetSignal) RetryGroup() bool

func (*GroupRetryWithoutTargetSignal) Type added in v0.19.1303

type ManualRetryGroupCountdownSignal

type ManualRetryGroupCountdownSignal struct {
	StepID          string `json:"step_id,omitempty"`
	FlowID          string `json:"flow_id,omitempty"`
	GroupRetryCount int    `json:"-"`
}

func (*ManualRetryGroupCountdownSignal) AutoRetry

func (s *ManualRetryGroupCountdownSignal) AutoRetry() bool

func (*ManualRetryGroupCountdownSignal) Execute

func (*ManualRetryGroupCountdownSignal) MaxAutoRetries added in v0.19.1197

func (*ManualRetryGroupCountdownSignal) MaxRetries

func (s *ManualRetryGroupCountdownSignal) MaxRetries() int

func (*ManualRetryGroupCountdownSignal) RetryGroup

func (s *ManualRetryGroupCountdownSignal) RetryGroup() bool

func (*ManualRetryGroupCountdownSignal) SetRetryCount

func (s *ManualRetryGroupCountdownSignal) SetRetryCount(retryIndex, groupRetryIndex int)

func (*ManualRetryGroupCountdownSignal) SetStepContext

func (s *ManualRetryGroupCountdownSignal) SetStepContext(stepID, flowID string)

func (*ManualRetryGroupCountdownSignal) SleepAfter

func (*ManualRetryGroupCountdownSignal) Type

func (*ManualRetryGroupCountdownSignal) Validate

type ManualRetrySignal added in v0.19.1163

type ManualRetrySignal struct {
	StepID string `json:"step_id,omitempty"`
	FlowID string `json:"flow_id,omitempty"`
}

func (*ManualRetrySignal) AutoRetry added in v0.19.1163

func (s *ManualRetrySignal) AutoRetry() bool

func (*ManualRetrySignal) Execute added in v0.19.1163

func (s *ManualRetrySignal) Execute(ctx workflow.Context) error

func (*ManualRetrySignal) MaxAutoRetries added in v0.19.1163

func (s *ManualRetrySignal) MaxAutoRetries(workflow.Context) int

func (*ManualRetrySignal) MaxRetries added in v0.19.1163

func (s *ManualRetrySignal) MaxRetries() int

func (*ManualRetrySignal) SetStepContext added in v0.19.1163

func (s *ManualRetrySignal) SetStepContext(stepID, flowID string)

func (*ManualRetrySignal) SleepAfter added in v0.19.1163

func (s *ManualRetrySignal) SleepAfter() time.Duration

func (*ManualRetrySignal) Type added in v0.19.1163

func (*ManualRetrySignal) Validate added in v0.19.1163

func (s *ManualRetrySignal) Validate(workflow.Context) error

type ManualRetryThenBlockSignal added in v0.19.1163

type ManualRetryThenBlockSignal struct {
	StepID string `json:"step_id,omitempty"`
	FlowID string `json:"flow_id,omitempty"`
}

func (*ManualRetryThenBlockSignal) AutoRetry added in v0.19.1163

func (s *ManualRetryThenBlockSignal) AutoRetry() bool

func (*ManualRetryThenBlockSignal) Cancel added in v0.19.1163

func (*ManualRetryThenBlockSignal) Execute added in v0.19.1163

func (*ManualRetryThenBlockSignal) MaxAutoRetries added in v0.19.1163

func (s *ManualRetryThenBlockSignal) MaxAutoRetries(workflow.Context) int

func (*ManualRetryThenBlockSignal) MaxRetries added in v0.19.1163

func (s *ManualRetryThenBlockSignal) MaxRetries() int

func (*ManualRetryThenBlockSignal) SetStepContext added in v0.19.1163

func (s *ManualRetryThenBlockSignal) SetStepContext(stepID, flowID string)

func (*ManualRetryThenBlockSignal) SleepAfter added in v0.19.1163

func (s *ManualRetryThenBlockSignal) SleepAfter() time.Duration

func (*ManualRetryThenBlockSignal) Type added in v0.19.1163

func (*ManualRetryThenBlockSignal) Validate added in v0.19.1163

type PlanApplyFailSignal

type PlanApplyFailSignal struct{}

func (*PlanApplyFailSignal) AutoRetry

func (s *PlanApplyFailSignal) AutoRetry() bool

func (*PlanApplyFailSignal) Clone added in v0.19.945

func (s *PlanApplyFailSignal) Clone(_ workflow.Context, originalStepName string) ([]signal.CloneStepDef, error)

func (*PlanApplyFailSignal) Execute

func (*PlanApplyFailSignal) MaxRetries

func (s *PlanApplyFailSignal) MaxRetries() int

func (*PlanApplyFailSignal) RetryGroup

func (s *PlanApplyFailSignal) RetryGroup() bool

func (*PlanApplyFailSignal) SleepAfter

func (s *PlanApplyFailSignal) SleepAfter() time.Duration

func (*PlanApplyFailSignal) Type

func (*PlanApplyFailSignal) Validate

type PolicyEvalApprovalSignal added in v0.19.1163

type PolicyEvalApprovalSignal struct{}

func (*PolicyEvalApprovalSignal) Execute added in v0.19.1163

func (*PolicyEvalApprovalSignal) RequiresPolicyEvaluation added in v0.19.1163

func (s *PolicyEvalApprovalSignal) RequiresPolicyEvaluation() bool

func (*PolicyEvalApprovalSignal) SleepAfter added in v0.19.1163

func (s *PolicyEvalApprovalSignal) SleepAfter() time.Duration

func (*PolicyEvalApprovalSignal) Type added in v0.19.1163

func (*PolicyEvalApprovalSignal) Validate added in v0.19.1163

type RetryGroupSignal

type RetryGroupSignal struct{}

func (*RetryGroupSignal) AutoRetry

func (s *RetryGroupSignal) AutoRetry() bool

func (*RetryGroupSignal) Execute

func (s *RetryGroupSignal) Execute(workflow.Context) error

func (*RetryGroupSignal) MaxRetries

func (s *RetryGroupSignal) MaxRetries() int

func (*RetryGroupSignal) RetryGroup

func (s *RetryGroupSignal) RetryGroup() bool

func (*RetryGroupSignal) SleepAfter

func (s *RetryGroupSignal) SleepAfter() time.Duration

func (*RetryGroupSignal) Type

func (*RetryGroupSignal) Validate

func (s *RetryGroupSignal) Validate(workflow.Context) error

type RetryWithoutTargetSignal added in v0.19.1303

type RetryWithoutTargetSignal struct {
	TargetStepID string `json:"target_step_id,omitempty"`
}

func (*RetryWithoutTargetSignal) AutoRetry added in v0.19.1303

func (s *RetryWithoutTargetSignal) AutoRetry() bool

func (*RetryWithoutTargetSignal) Execute added in v0.19.1303

func (*RetryWithoutTargetSignal) MaxAutoRetries added in v0.19.1303

func (s *RetryWithoutTargetSignal) MaxAutoRetries(workflow.Context) int

func (*RetryWithoutTargetSignal) MaxRetries added in v0.19.1303

func (s *RetryWithoutTargetSignal) MaxRetries() int

func (*RetryWithoutTargetSignal) OnRetry added in v0.19.1303

func (*RetryWithoutTargetSignal) SleepAfter added in v0.19.1303

func (s *RetryWithoutTargetSignal) SleepAfter() time.Duration

func (*RetryWithoutTargetSignal) Type added in v0.19.1303

func (*RetryWithoutTargetSignal) Validate added in v0.19.1303

type SkipGroupApprovalSignal added in v0.19.1163

type SkipGroupApprovalSignal struct{}

func (*SkipGroupApprovalSignal) Execute added in v0.19.1163

func (*SkipGroupApprovalSignal) SkipGroup added in v0.19.1163

func (s *SkipGroupApprovalSignal) SkipGroup() bool

func (*SkipGroupApprovalSignal) SleepAfter added in v0.19.1163

func (s *SkipGroupApprovalSignal) SleepAfter() time.Duration

func (*SkipGroupApprovalSignal) Type added in v0.19.1163

func (*SkipGroupApprovalSignal) Validate added in v0.19.1163

type SkippableFailSignal added in v0.19.1163

type SkippableFailSignal struct{}

func (*SkippableFailSignal) AutoRetry added in v0.19.1163

func (s *SkippableFailSignal) AutoRetry() bool

func (*SkippableFailSignal) Execute added in v0.19.1163

func (*SkippableFailSignal) MaxRetries added in v0.19.1163

func (s *SkippableFailSignal) MaxRetries() int

func (*SkippableFailSignal) SleepAfter added in v0.19.1163

func (s *SkippableFailSignal) SleepAfter() time.Duration

func (*SkippableFailSignal) Type added in v0.19.1163

func (*SkippableFailSignal) Validate added in v0.19.1163

type SlowSignal

type SlowSignal struct{}

func (*SlowSignal) Cancel

func (s *SlowSignal) Cancel(workflow.Context) error

func (*SlowSignal) Execute

func (s *SlowSignal) Execute(ctx workflow.Context) error

func (*SlowSignal) SleepAfter

func (s *SlowSignal) SleepAfter() time.Duration

func (*SlowSignal) Type

func (s *SlowSignal) Type() signal.SignalType

func (*SlowSignal) Validate

func (s *SlowSignal) Validate(workflow.Context) error

type SuccessSignal

type SuccessSignal struct{}

func (*SuccessSignal) Execute

func (s *SuccessSignal) Execute(workflow.Context) error

func (*SuccessSignal) SleepAfter

func (s *SuccessSignal) SleepAfter() time.Duration

func (*SuccessSignal) Type

func (s *SuccessSignal) Type() signal.SignalType

func (*SuccessSignal) Validate

func (s *SuccessSignal) Validate(workflow.Context) error

type Worker

type Worker struct {
	worker.Worker
}

func New

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

type WorkerParams

type WorkerParams struct {
	fx.In

	V              *validator.Validate
	Cfg            *internal.Config
	Tclient        temporalclient.Client
	QueueWkflows   *queue.Workflows
	HandlerWkflows *handler.Workflows
	SharedActs     *workflows.Activities
	L              *zap.Logger
	Lc             fx.Lifecycle
	Interceptors   []interceptor.WorkerInterceptor `group:"interceptors"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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