Documentation
¶
Index ¶
- Variables
- type TasksBackend
- func (be *TasksBackend) CancelActivityTask(ctx context.Context, instanceID api.InstanceID, taskID int32) error
- func (be *TasksBackend) CancelWorkflowTask(ctx context.Context, instanceID api.InstanceID) error
- func (be *TasksBackend) CompleteActivityTask(ctx context.Context, response *protos.ActivityResponse) error
- func (be *TasksBackend) CompleteWorkflowTask(ctx context.Context, response *protos.WorkflowResponse) error
- func (be *TasksBackend) OnActivityCompletion(request *protos.ActivityRequest, ...) func()
- func (be *TasksBackend) OnWorkflowTaskCompletion(request *protos.WorkflowRequest, ...) func()
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAmbiguousCompletion = errors.New("completion has no completion token and several executions of the task are pending; they were aborted and will be re-run")
ErrAmbiguousCompletion is returned for a completion without a completion token that arrives while several executions of its task are pending. It cannot be matched to one of them, so they are all aborted and re-run.
Functions ¶
This section is empty.
Types ¶
type TasksBackend ¶
type TasksBackend struct {
// contains filtered or unexported fields
}
func NewTasksBackend ¶
func NewTasksBackend() *TasksBackend
func (*TasksBackend) CancelActivityTask ¶
func (be *TasksBackend) CancelActivityTask(ctx context.Context, instanceID api.InstanceID, taskID int32) error
func (*TasksBackend) CancelWorkflowTask ¶ added in v0.12.0
func (be *TasksBackend) CancelWorkflowTask(ctx context.Context, instanceID api.InstanceID) error
func (*TasksBackend) CompleteActivityTask ¶
func (be *TasksBackend) CompleteActivityTask(ctx context.Context, response *protos.ActivityResponse) error
func (*TasksBackend) CompleteWorkflowTask ¶ added in v0.12.0
func (be *TasksBackend) CompleteWorkflowTask(ctx context.Context, response *protos.WorkflowResponse) error
func (*TasksBackend) OnActivityCompletion ¶ added in v0.13.0
func (be *TasksBackend) OnActivityCompletion(request *protos.ActivityRequest, onResult func(*protos.ActivityResponse, error)) func()
func (*TasksBackend) OnWorkflowTaskCompletion ¶ added in v0.13.0
func (be *TasksBackend) OnWorkflowTaskCompletion(request *protos.WorkflowRequest, onResult func(*protos.WorkflowResponse, error)) func()
Click to show internal directories.
Click to hide internal directories.