Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
Store(ctx context.Context, instance *core.WorkflowInstance, workflow WorkflowExecutor) error
Evict(ctx context.Context, instance *core.WorkflowInstance) error
Get(ctx context.Context, instance *core.WorkflowInstance) (WorkflowExecutor, bool, error)
StartEviction(ctx context.Context)
}
type ExecutionResult ¶
type ExecutionResult struct {
// New state of the workflow instance
State core.WorkflowInstanceState
// Events executed during the tastk execution
Executed []*history.Event
// Activities that were scheduled
ActivityEvents []*history.Event
// Timers that were scheduled
TimerEvents []*history.Event
// Events for other workflow instances
WorkflowEvents []*history.WorkflowEvent
}
type WorkflowExecutor ¶
type WorkflowExecutor interface {
ExecuteTask(ctx context.Context, t *backend.WorkflowTask) (*ExecutionResult, error)
Close()
}
func NewExecutor ¶
func NewExecutor( logger *slog.Logger, tracer trace.Tracer, registry *registry.Registry, cv converter.Converter, propagators []wf.ContextPropagator, historyProvider WorkflowHistoryProvider, instance *core.WorkflowInstance, metadata *metadata.WorkflowMetadata, clock clock.Clock, maxHistorySize int64, ) (WorkflowExecutor, error)
type WorkflowHistoryProvider ¶
Click to show internal directories.
Click to hide internal directories.