Documentation
¶
Index ¶
- type Worker
- type WorkerParams
- type Workflows
- func (w Workflows) All() []any
- func (w *Workflows) EventLoop(ctx workflow.Context, req eventloop.EventLoopRequest, ...) error
- func (w *Workflows) ListWorkflowFns() []any
- func (w *Workflows) Metrics(ctx workflow.Context) error
- func (w *Workflows) Promotion(ctx workflow.Context, _ signals.RequestSignal) error
- func (w *Workflows) PurgeStaleData(ctx workflow.Context) error
- func (w *Workflows) RestartOrgEventLoops(ctx workflow.Context) error
- func (w *Workflows) RestartOrgRunners(ctx workflow.Context) error
- func (w *Workflows) Seed(ctx workflow.Context, _ signals.RequestSignal) error
- func (w *Workflows) TerminateEventLoops(ctx workflow.Context, _ signals.RequestSignal) error
- type WorkflowsParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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"`
}
type Workflows ¶
type Workflows struct {
// contains filtered or unexported fields
}
func NewWorkflows ¶
func NewWorkflows(params WorkflowsParams) (*Workflows, error)
func (*Workflows) ListWorkflowFns ¶ added in v0.19.850
ListWorkflowFns returns the list of workflow functions for registration
func (*Workflows) RestartOrgEventLoops ¶
func (*Workflows) RestartOrgRunners ¶
func (*Workflows) TerminateEventLoops ¶
@temporal-gen-v2 workflow @execution-timeout 10m @task-timeout 30s
Source Files
¶
Click to show internal directories.
Click to hide internal directories.