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
2 changes: 1 addition & 1 deletion apis/workflows/v1/automation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
max_bytes: 1024
}];
// The task submission to trigger
TaskSubmission prototype = 3;
SingleTaskSubmission prototype = 3;

Check failure on line 66 in apis/workflows/v1/automation.proto

View workflow job for this annotation

GitHub Actions / Buf

Field "3" with name "prototype" on message "AutomationPrototype" changed type from "workflows.v1.TaskSubmission" to "workflows.v1.SingleTaskSubmission".

// The storage event triggers that will trigger the task
repeated StorageEventTrigger storage_event_triggers = 4 [(buf.validate.field).repeated.max_items = 32];
Expand Down
9 changes: 6 additions & 3 deletions apis/workflows/v1/core.proto
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ message Tasks {
repeated Task tasks = 1;
}

// TaskSubmission is a message of a task that is just about to be submitted, either by submitting a job or as a subtask.
message TaskSubmission {
// SingleTaskSubmission is a message of a task that is just about to be submitted, currently in use by automations.
message SingleTaskSubmission {
// The cluster that this task should be run on
string cluster_slug = 1;
// The task identifier
Expand Down Expand Up @@ -209,7 +209,10 @@ message TaskSubmissions {
// Concrete instantiations of tasks, grouped by their dependencies and dependants. Each group is uniquely defined by
// the set of groups that it depends on (dependencies_on_other_groups) and the set of groups that depend on it,
// (which is implicitly given by the inverse of the dependencies on other groups).
repeated TaskSubmissionGroup task_groups = 1;
repeated TaskSubmissionGroup task_groups = 1 [(buf.validate.field).repeated = {
min_items: 1
max_items: 64
}];
// Unique values of cluster slugs, referenced by index in the task instantiations.
repeated string cluster_slug_lookup = 2;
// Unique values of task identifiers, referenced by index in the task instantiations.
Expand Down
8 changes: 5 additions & 3 deletions apis/workflows/v1/job.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
// SubmitJobRequest submits and schedules a job for execution. The job can have multiple root tasks.
message SubmitJobRequest {
// The root tasks for the job.
repeated TaskSubmission tasks = 1 [(buf.validate.field).repeated = {
repeated SingleTaskSubmission legacy_tasks = 1 [(buf.validate.field).repeated = {

Check failure on line 18 in apis/workflows/v1/job.proto

View workflow job for this annotation

GitHub Actions / Buf

Field "1" on message "SubmitJobRequest" changed name from "tasks" to "legacy_tasks".

Check failure on line 18 in apis/workflows/v1/job.proto

View workflow job for this annotation

GitHub Actions / Buf

Field "1" with name "legacy_tasks" on message "SubmitJobRequest" changed type from "workflows.v1.TaskSubmission" to "workflows.v1.SingleTaskSubmission".
min_items: 1
max_items: 64
}];

Check failure on line 21 in apis/workflows/v1/job.proto

View workflow job for this annotation

GitHub Actions / Buf

Field "1" with name "legacy_tasks" on message "SubmitJobRequest" changed option "json_name" from "tasks" to "legacyTasks".
// The root tasks for the job.
TaskSubmissions tasks = 5;
// The name of the job.
string job_name = 2 [(buf.validate.field).string.min_len = 1];
// Tracing information for the job. This is used to propagate tracing information to the workers that execute the job.
Expand Down Expand Up @@ -134,7 +136,7 @@
// A clone prototype of a job.
message GetJobPrototypeResponse {
// The root tasks of the job.
repeated TaskSubmission root_tasks = 1;
repeated SingleTaskSubmission root_tasks = 1;

Check failure on line 139 in apis/workflows/v1/job.proto

View workflow job for this annotation

GitHub Actions / Buf

Field "1" with name "root_tasks" on message "GetJobPrototypeResponse" changed type from "workflows.v1.TaskSubmission" to "workflows.v1.SingleTaskSubmission".
// The name of the job.
string job_name = 2;
}
Expand All @@ -144,7 +146,7 @@
// The ID of the job to clone.
tilebox.v1.ID job_id = 1 [(buf.validate.field).required = true];
// The updated root tasks of the job.
repeated TaskSubmission root_tasks_overrides = 2 [(buf.validate.field).repeated = {
repeated SingleTaskSubmission root_tasks_overrides = 2 [(buf.validate.field).repeated = {

Check failure on line 149 in apis/workflows/v1/job.proto

View workflow job for this annotation

GitHub Actions / Buf

Field "2" with name "root_tasks_overrides" on message "CloneJobRequest" changed type from "workflows.v1.TaskSubmission" to "workflows.v1.SingleTaskSubmission".
min_items: 1
max_items: 64
}];
Expand Down
2 changes: 1 addition & 1 deletion apis/workflows/v1/task.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
// If not set, the display message specified upon task submission will be kept.
string display = 2;
// A list of sub-tasks that the just computed task spawned.
repeated TaskSubmission legacy_sub_tasks = 3 [
repeated SingleTaskSubmission legacy_sub_tasks = 3 [

Check failure on line 39 in apis/workflows/v1/task.proto

View workflow job for this annotation

GitHub Actions / Buf

Field "3" with name "legacy_sub_tasks" on message "ComputedTask" changed type from "workflows.v1.TaskSubmission" to "workflows.v1.SingleTaskSubmission".
deprecated = true,
(buf.validate.field).repeated.max_items = 64
];
Expand Down
Loading