Skip to content
Open
Show file tree
Hide file tree
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
117 changes: 117 additions & 0 deletions backend/api/v2beta1/go_client/run.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 75 additions & 1 deletion backend/api/v2beta1/go_client/run_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 57 additions & 3 deletions backend/api/v2beta1/run.proto
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,27 @@ service RunService {
}

// Re-initiates a failed or terminated run.
rpc RetryRun(RetryRunRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/apis/v2beta1/runs/{run_id}:retry"
rpc RetryRun(RetryRunRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/apis/v2beta1/runs/{run_id}:retry"
};
}

// Clears a task's status, causing it to re-run.
rpc ClearTask(ClearTaskRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/apis/v2beta1/runs/{run_id}/tasks/{task_id}:clear"
body: "*"
};
}

// Marks a task as succeeded, allowing downstream tasks to proceed.
rpc MarkTaskSuccess(MarkTaskSuccessRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
post: "/apis/v2beta1/runs/{run_id}/tasks/{task_id}:marksuccess"
body: "*"
};
}
}

message Run {
Expand Down Expand Up @@ -506,4 +521,43 @@ message RetryRunRequest {

// The ID of the run to be retried.
string run_id = 2;
}

// The propagation scope for Clear and Mark Success actions.
enum TaskScope {
TASK_SCOPE_UNSPECIFIED = 0;
TASK_ONLY = 1;
DOWNSTREAM = 2;
UPSTREAM = 3;
UPSTREAM_DOWNSTREAM = 4;
}

// Request to clear (re-run) a task.
message ClearTaskRequest {
// The ID of the run containing the task.
string run_id = 1;

// The ID (node ID or name) of the task to be cleared.
string task_id = 2;

// The propagation scope for clearing the task.
TaskScope scope = 3;

// Whether to bypass existing execution cache for the cleared tasks.
bool invalidate_cache = 4;
}

// Request to override a task status to Success.
message MarkTaskSuccessRequest {
// The ID of the run containing the task.
string run_id = 1;

// The ID (node ID or name) of the task to be marked as success.
string task_id = 2;

// The propagation scope for marking success.
TaskScope scope = 3;

// A mandatory reason or comment for manual override audit logging.
string comment = 4;
}
Loading
Loading