Skip to content
Draft
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
17 changes: 17 additions & 0 deletions flyteidl2/workflow/run_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ service RunService {
option idempotency_level = NO_SIDE_EFFECTS;
}

// Get latest run for the provided task.
rpc GetLatestRun(GetLatestRunRequest) returns (GetLatestRunResponse) {
option idempotency_level = NO_SIDE_EFFECTS;
}

// Stream updates for runs based on the provided filter criteria. Responses may include newly discovered
// runs or updates to existing ones from the point of invocation.
rpc WatchRuns(WatchRunsRequest) returns (stream WatchRunsResponse) {}
Expand Down Expand Up @@ -212,6 +217,18 @@ message ListRunsResponse {
string token = 2;
}

// Request message for getting latest run for a task.
message GetLatestRunRequest {
// task name to query.
task.TaskName task_name = 1 [(buf.validate.field).required = true];
}

// Response message for getting latest run for a task.
message GetLatestRunResponse {
// information about the run.
Run run = 1;
}

// Request message for watching runs.
message WatchRunsRequest {
oneof target {
Expand Down
74 changes: 74 additions & 0 deletions gen/go/flyteidl2/workflow/mocks/mock_RunServiceClient.go

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

59 changes: 59 additions & 0 deletions gen/go/flyteidl2/workflow/mocks/mock_RunServiceServer.go

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

Loading