Documentation
¶
Index ¶
- Constants
- type Actors
- func (*Actors) AbandonActivityWorkItem(ctx context.Context, wi *backend.ActivityWorkItem) error
- func (*Actors) AbandonOrchestrationWorkItem(ctx context.Context, wi *backend.OrchestrationWorkItem) error
- func (abe *Actors) ActivityActorType() string
- func (abe *Actors) AddNewOrchestrationEvent(ctx context.Context, id api.InstanceID, e *backend.HistoryEvent) error
- func (*Actors) CompleteActivityWorkItem(ctx context.Context, wi *backend.ActivityWorkItem) error
- func (*Actors) CompleteOrchestrationWorkItem(ctx context.Context, wi *backend.OrchestrationWorkItem) error
- func (abe *Actors) CreateOrchestrationInstance(ctx context.Context, e *backend.HistoryEvent, ...) error
- func (*Actors) CreateTaskHub(context.Context) error
- func (*Actors) DeleteTaskHub(context.Context) error
- func (abe *Actors) GetOrchestrationMetadata(ctx context.Context, id api.InstanceID) (*backend.OrchestrationMetadata, error)
- func (abe *Actors) GetOrchestrationRuntimeState(ctx context.Context, owi *backend.OrchestrationWorkItem) (*backend.OrchestrationRuntimeState, error)
- func (abe *Actors) NextActivityWorkItem(ctx context.Context) (*backend.ActivityWorkItem, error)
- func (abe *Actors) NextOrchestrationWorkItem(ctx context.Context) (*backend.OrchestrationWorkItem, error)
- func (abe *Actors) PurgeOrchestrationState(ctx context.Context, id api.InstanceID) error
- func (abe *Actors) RegisterActors(ctx context.Context) error
- func (abe *Actors) Start(ctx context.Context) error
- func (*Actors) Stop(context.Context) error
- func (abe *Actors) String() string
- func (abe *Actors) UnRegisterActors(ctx context.Context) error
- func (abe *Actors) WatchOrchestrationRuntimeStatus(ctx context.Context, id api.InstanceID, ...) error
- type Options
Constants ¶
const ( WorkflowNameLabelKey = "workflow" ActivityNameLabelKey = "activity" ActorTypePrefix = "dapr.internal." )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actors ¶ added in v1.15.0
type Actors struct {
// contains filtered or unexported fields
}
func (*Actors) AbandonActivityWorkItem ¶ added in v1.15.0
AbandonActivityWorkItem implements backend.Backend. It gets called by durabletask-go when there is an unexpected failure in the workflow activity execution pipeline.
func (*Actors) AbandonOrchestrationWorkItem ¶ added in v1.15.0
func (*Actors) AbandonOrchestrationWorkItem(ctx context.Context, wi *backend.OrchestrationWorkItem) error
AbandonOrchestrationWorkItem implements backend.Backend. It gets called by durabletask-go when there is an unexpected failure in the workflow orchestration execution pipeline.
func (*Actors) ActivityActorType ¶ added in v1.15.0
func (*Actors) AddNewOrchestrationEvent ¶ added in v1.15.0
func (abe *Actors) AddNewOrchestrationEvent(ctx context.Context, id api.InstanceID, e *backend.HistoryEvent) error
AddNewOrchestrationEvent implements backend.Backend and sends the event e to the workflow actor identified by id.
func (*Actors) CompleteActivityWorkItem ¶ added in v1.15.0
CompleteActivityWorkItem implements backend.Backend
func (*Actors) CompleteOrchestrationWorkItem ¶ added in v1.15.0
func (*Actors) CompleteOrchestrationWorkItem(ctx context.Context, wi *backend.OrchestrationWorkItem) error
CompleteOrchestrationWorkItem implements backend.Backend
func (*Actors) CreateOrchestrationInstance ¶ added in v1.15.0
func (abe *Actors) CreateOrchestrationInstance(ctx context.Context, e *backend.HistoryEvent, opts ...backend.OrchestrationIdReusePolicyOptions) error
CreateOrchestrationInstance implements backend.Backend and creates a new workflow instance.
Internally, creating a workflow instance also creates a new actor with the same ID. The create request is saved into the actor's "inbox" and then executed via a reminder thread. If the app is scaled out across multiple replicas, the actor might get assigned to a replicas other than this one.
func (*Actors) CreateTaskHub ¶ added in v1.15.0
CreateTaskHub implements backend.Backend
func (*Actors) DeleteTaskHub ¶ added in v1.15.0
DeleteTaskHub implements backend.Backend
func (*Actors) GetOrchestrationMetadata ¶ added in v1.15.0
func (abe *Actors) GetOrchestrationMetadata(ctx context.Context, id api.InstanceID) (*backend.OrchestrationMetadata, error)
GetOrchestrationMetadata implements backend.Backend
func (*Actors) GetOrchestrationRuntimeState ¶ added in v1.15.0
func (abe *Actors) GetOrchestrationRuntimeState(ctx context.Context, owi *backend.OrchestrationWorkItem) (*backend.OrchestrationRuntimeState, error)
GetOrchestrationRuntimeState implements backend.Backend
func (*Actors) NextActivityWorkItem ¶ added in v1.15.0
NextActivityWorkItem implements backend.Backend
func (*Actors) NextOrchestrationWorkItem ¶ added in v1.15.0
func (abe *Actors) NextOrchestrationWorkItem(ctx context.Context) (*backend.OrchestrationWorkItem, error)
NextOrchestrationWorkItem implements backend.Backend
func (*Actors) PurgeOrchestrationState ¶ added in v1.15.0
PurgeOrchestrationState deletes all saved state for the specific orchestration instance.
func (*Actors) RegisterActors ¶ added in v1.15.0
func (*Actors) UnRegisterActors ¶ added in v1.15.0
func (*Actors) WatchOrchestrationRuntimeStatus ¶ added in v1.15.0
func (abe *Actors) WatchOrchestrationRuntimeStatus(ctx context.Context, id api.InstanceID, ch chan<- *backend.OrchestrationMetadata) error