Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Optimus - add bulk delete jobs proto #115

Merged
merged 4 commits into from
Jul 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions gotocompany/optimus/core/v1beta1/job_spec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ service JobSpecificationService {
body: "*"
};
}

// BulkDeleteJobs deletes one or more jobs in bulk operation,
// while following postorder deletion, starting from jobs with no dependencies
rpc BulkDeleteJobs(BulkDeleteJobsRequest) returns (BulkDeleteJobsResponse) {
option (google.api.http) = {
delete: "/v1beta1/project/{project_name}/job/bulk-delete"
};
}
}

message DeployJobSpecificationRequest {
Expand Down Expand Up @@ -688,3 +696,22 @@ message SyncJobsStateRequest {

message SyncJobsStateResponse {
}

message BulkDeleteJobsRequest {
message JobToDelete {
string namespace_name = 1;
string job_name = 2;
}

string project_name = 1;
repeated JobToDelete jobs = 2;
}

message BulkDeleteJobsResponse {
message JobDeletionStatus {
bool success = 1;
string message = 2;
}

map<string, JobDeletionStatus> results_by_job_name = 1;
}
Loading