Skip to content

Commit

Permalink
refactor: mark submitter RPCs as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
aneojgurhem committed Sep 25, 2023
1 parent 0ae5684 commit fd6052d
Showing 1 changed file with 42 additions and 14 deletions.
56 changes: 42 additions & 14 deletions Protos/V1/submitter_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,52 @@ import "submitter_common.proto";
option csharp_namespace = "ArmoniK.Api.gRPC.V1.Submitter";

service Submitter {
rpc GetServiceConfiguration(Empty) returns (Configuration);
rpc GetServiceConfiguration(Empty) returns (Configuration) {
option deprecated = true;
}

rpc CreateSession(CreateSessionRequest) returns (CreateSessionReply);
rpc CancelSession(Session) returns (Empty);
rpc CreateSession(CreateSessionRequest) returns (CreateSessionReply) {
option deprecated = true;
}
rpc CancelSession(Session) returns (Empty) {
option deprecated = true;
}

rpc CreateSmallTasks(CreateSmallTaskRequest) returns (CreateTaskReply);
rpc CreateLargeTasks(stream CreateLargeTaskRequest) returns (CreateTaskReply);
rpc CreateSmallTasks(CreateSmallTaskRequest) returns (CreateTaskReply) {
option deprecated = true;
}
rpc CreateLargeTasks(stream CreateLargeTaskRequest) returns (CreateTaskReply) {
option deprecated = true;
}

rpc ListTasks(TaskFilter) returns (TaskIdList);
rpc ListSessions(SessionFilter) returns (SessionIdList);
rpc ListTasks(TaskFilter) returns (TaskIdList) {
option deprecated = true;
}
rpc ListSessions(SessionFilter) returns (SessionIdList) {
option deprecated = true;
}

rpc CountTasks(TaskFilter) returns (Count);
rpc TryGetResultStream(ResultRequest) returns (stream ResultReply);
rpc TryGetTaskOutput(TaskOutputRequest) returns (Output);
rpc CountTasks(TaskFilter) returns (Count) {
option deprecated = true;
}
rpc TryGetResultStream(ResultRequest) returns (stream ResultReply) {
option deprecated = true;
}
rpc TryGetTaskOutput(TaskOutputRequest) returns (Output) {
option deprecated = true;
}
rpc WaitForAvailability(ResultRequest) returns (AvailabilityReply) {
option deprecated = true;
}
rpc WaitForCompletion(WaitRequest) returns (Count);
rpc CancelTasks(TaskFilter) returns (Empty);
rpc GetTaskStatus(GetTaskStatusRequest) returns (GetTaskStatusReply);
rpc WaitForCompletion(WaitRequest) returns (Count) {
option deprecated = true;
}
rpc CancelTasks(TaskFilter) returns (Empty) {
option deprecated = true;
}
rpc GetTaskStatus(GetTaskStatusRequest) returns (GetTaskStatusReply) {
option deprecated = true;
}
rpc GetResultStatus(GetResultStatusRequest) returns (GetResultStatusReply) {
option deprecated = true;
}
Expand All @@ -41,5 +67,7 @@ service Submitter {
* Any reply can be implicitely chunked if there are too many event to report at the same time (or for the first reply).
* It is possible to filter out specific statuses from events.
*/
rpc WatchResults(stream WatchResultRequest) returns (stream WatchResultStream);
rpc WatchResults(stream WatchResultRequest) returns (stream WatchResultStream) {
option deprecated = true;
}
}

0 comments on commit fd6052d

Please sign in to comment.