@@ -342,8 +342,10 @@ message OrchestratorResponse {
342342 // The number of work item events that were processed by the orchestrator.
343343 // This field is optional. If not set, the service should assume that the orchestrator processed all events.
344344 google.protobuf.Int32Value numEventsProcessed = 5 ;
345-
346345 OrchestrationTraceContext orchestrationTraceContext = 6 ;
346+
347+ // Whether or not a history is required to complete the original OrchestratorRequest and none was provided.
348+ bool requiresHistory = 7 ;
347349}
348350
349351message CreateInstanceRequest {
@@ -678,6 +680,18 @@ message AbandonEntityTaskResponse {
678680 // Empty.
679681}
680682
683+ message SkipGracefulOrchestrationTerminationsRequest {
684+ // A maximum of 500 instance IDs can be provided in this list.
685+ repeated string instanceIds = 1 ;
686+ google.protobuf.StringValue reason = 2 ;
687+ }
688+
689+ message SkipGracefulOrchestrationTerminationsResponse {
690+ // Those instances which could not be terminated because they had locked entities at the time of this termination call,
691+ // are already in a terminal state (completed, failed, terminated, etc.), are not orchestrations, or do not exist (i.e. have been purged)
692+ repeated string unterminatedInstanceIds = 1 ;
693+ }
694+
681695service TaskHubSidecarService {
682696 // Sends a hello request to the sidecar service.
683697 rpc Hello (google .protobuf .Empty ) returns (google .protobuf .Empty );
@@ -751,6 +765,10 @@ service TaskHubSidecarService {
751765
752766 // Abandon an entity work item
753767 rpc AbandonTaskEntityWorkItem (AbandonEntityTaskRequest ) returns (AbandonEntityTaskResponse );
768+
769+ // "Skip" graceful termination of orchestrations by immediately changing their status in storage to "terminated".
770+ // Note that a maximum of 500 orchestrations can be terminated at a time using this method.
771+ rpc SkipGracefulOrchestrationTerminations (SkipGracefulOrchestrationTerminationsRequest ) returns (SkipGracefulOrchestrationTerminationsResponse );
754772}
755773
756774message GetWorkItemsRequest {
0 commit comments