stalled

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*options)

func WithActivity

func WithActivity(name string, activity task.Activity) Option

func WithInitialReplica

func WithInitialReplica(name string) Option

func WithNamedWorkflowReplica

func WithNamedWorkflowReplica(name string, workflow task.Orchestrator) Option

type Stalled

type Stalled struct {
	CurrentClient *client.TaskHubGrpcClient
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, fopts ...Option) *Stalled

func (*Stalled) Cleanup

func (f *Stalled) Cleanup(t *testing.T)

func (*Stalled) CountStalledEvents

func (f *Stalled) CountStalledEvents(t *testing.T, ctx context.Context, id api.InstanceID) int

func (*Stalled) RestartAsReplica

func (f *Stalled) RestartAsReplica(t *testing.T, ctx context.Context, name string)

func (*Stalled) Run

func (f *Stalled) Run(t *testing.T, ctx context.Context)

func (*Stalled) ScheduleWorkflow

func (f *Stalled) ScheduleWorkflow(t *testing.T, ctx context.Context) api.InstanceID

func (*Stalled) WaitForCompleted

func (f *Stalled) WaitForCompleted(t *testing.T, ctx context.Context, id api.InstanceID)

func (*Stalled) WaitForNumberOfOrchestrationStartedEvents

func (f *Stalled) WaitForNumberOfOrchestrationStartedEvents(t *testing.T, ctx context.Context, id api.InstanceID, expected int)

func (*Stalled) WaitForStalled

func (f *Stalled) WaitForStalled(t *testing.T, ctx context.Context, id api.InstanceID) *protos.ExecutionStalledEvent

Jump to

Keyboard shortcuts

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