Skip to content

Commit

Permalink
DT-143 - batch cancel (#256)
Browse files Browse the repository at this point in the history
* make batch operations more restful
add list and stop batch operation endpoints

* fix batch api routes
  • Loading branch information
rossedfort committed Nov 30, 2022
1 parent a2dab63 commit 58284cd
Show file tree
Hide file tree
Showing 4 changed files with 834 additions and 294 deletions.
19 changes: 17 additions & 2 deletions proto/api/temporal/api/workflowservice/v1/service.proto
Expand Up @@ -462,15 +462,30 @@ service WorkflowService {
// StartBatchOperation starts a new batch operation
rpc StartBatchOperation (StartBatchOperationRequest) returns (StartBatchOperationResponse) {
option (google.api.http) = {
post: "/api/v1/namespaces/{namespace}/workflows/batch/terminate"
post: "/api/v1/namespaces/{namespace}/batch-operations"
body: "*"
};
}

// DescribeBatchOperation returns the information about a batch operation
rpc DescribeBatchOperation (DescribeBatchOperationRequest) returns (DescribeBatchOperationResponse) {
option (google.api.http) = {
get: "/api/v1/namespaces/{namespace}/workflows/batch/describe"
get: "/api/v1/namespaces/{namespace}/batch-operations/describe"
};
}

// ListBatchOperations returns the information about a batch operation
rpc ListBatchOperations (ListBatchOperationsRequest) returns (ListBatchOperationsResponse) {
option (google.api.http) = {
get: "/api/v1/namespaces/{namespace}/batch-operations"
};
}

// ListBatchOperations returns the information about a batch operation
rpc StopBatchOperation (StopBatchOperationRequest) returns (StopBatchOperationResponse) {
option (google.api.http) = {
put: "/api/v1/namespaces/{namespace}/batch-operations/stop",
body: "*"
};
}
}

0 comments on commit 58284cd

Please sign in to comment.