@@ -126,6 +126,28 @@ type Backend interface {
126
126
// [api.ErrInstanceNotFound] is returned if the specified orchestration instance doesn't exist.
127
127
// [api.ErrNotCompleted] is returned if the specified orchestration instance is still running.
128
128
PurgeOrchestrationState (context.Context , api.InstanceID ) error
129
+
130
+ // CompleteOrchestratorTask completes the orchestrator task by saving the updated runtime state to durable storage.
131
+ CompleteOrchestratorTask (context.Context , * protos.OrchestratorResponse ) error
132
+
133
+ // CancelOrchestratorTask cancels the orchestrator task so instances of WaitForOrchestratorCompletion will return an error.
134
+ CancelOrchestratorTask (context.Context , api.InstanceID ) error
135
+
136
+ // WaitForOrchestratorCompletion blocks until the orchestrator completes and returns the final response.
137
+ //
138
+ // [api.ErrTaskCancelled] is returned if the task was cancelled.
139
+ WaitForOrchestratorCompletion (context.Context , * protos.OrchestratorRequest ) (* protos.OrchestratorResponse , error )
140
+
141
+ // CompleteActivityTask completes the activity task by saving the updated runtime state to durable storage.
142
+ CompleteActivityTask (context.Context , * protos.ActivityResponse ) error
143
+
144
+ // CancelActivityTask cancels the activity task so instances of WaitForActivityCompletion will return an error.
145
+ CancelActivityTask (context.Context , api.InstanceID , int32 ) error
146
+
147
+ // WaitForActivityCompletion blocks until the activity completes and returns the final response.
148
+ //
149
+ // [api.ErrTaskCancelled] is returned if the task was cancelled.
150
+ WaitForActivityCompletion (context.Context , * protos.ActivityRequest ) (* protos.ActivityResponse , error )
129
151
}
130
152
131
153
// MarshalHistoryEvent serializes the [HistoryEvent] into a protobuf byte array.
0 commit comments