Skip to content
Merged
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
4 changes: 3 additions & 1 deletion apis/workflows/v1/core.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ option features.field_presence = IMPLICIT;
// A cluster is a grouping of tasks that are related.
message Cluster {
// 1 is reserved for a potential id field in the future.

reserved 1;
// The unique slug of the cluster within the namespace.
string slug = 2;
// The display name of the cluster.
Expand Down Expand Up @@ -162,6 +162,8 @@ enum TaskState {
// The task has been skipped, because it was in an optional subbranch and one of its sibling tasks in the same
// branch has failed.
TASK_STATE_SKIPPED = 5;
// The task has failed, but was optional.
TASK_STATE_FAILED_OPTIONAL = 6;
}

// An identifier for a task.
Expand Down
4 changes: 4 additions & 0 deletions apis/workflows/v1/job.proto
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ message QueryFilters {
// Filter jobs by states.
repeated JobState states = 4;

// Filter jobs by name.
string name = 5 [(buf.validate.field).string.max_len = 100];

// Filter jobs by their tasks (whether they have tasks in a certain state).
repeated TaskState task_states = 6;
}

// QueryJobsRequest requests a list of jobs.
Expand Down