@@ -15,10 +15,12 @@ option features.field_presence = IMPLICIT;
1515// SubmitJobRequest submits and schedules a job for execution. The job can have multiple root tasks.
1616message SubmitJobRequest {
1717 // The root tasks for the job.
18- repeated TaskSubmission tasks = 1 [(buf.validate.field ).repeated = {
18+ repeated SingleTaskSubmission legacy_tasks = 1 [(buf.validate.field ).repeated = {
1919 min_items : 1
2020 max_items : 64
2121 }];
22+ // The root tasks for the job.
23+ TaskSubmissions tasks = 5 ;
2224 // The name of the job.
2325 string job_name = 2 [(buf.validate.field ) .string.min_len = 1 ];
2426 // Tracing information for the job. This is used to propagate tracing information to the workers that execute the job.
@@ -134,7 +136,7 @@ message GetJobPrototypeRequest {
134136// A clone prototype of a job.
135137message GetJobPrototypeResponse {
136138 // The root tasks of the job.
137- repeated TaskSubmission root_tasks = 1 ;
139+ repeated SingleTaskSubmission root_tasks = 1 ;
138140 // The name of the job.
139141 string job_name = 2 ;
140142}
@@ -144,7 +146,7 @@ message CloneJobRequest {
144146 // The ID of the job to clone.
145147 tilebox.v1.ID job_id = 1 [(buf.validate.field ).required = true ];
146148 // The updated root tasks of the job.
147- repeated TaskSubmission root_tasks_overrides = 2 [(buf.validate.field ).repeated = {
149+ repeated SingleTaskSubmission root_tasks_overrides = 2 [(buf.validate.field ).repeated = {
148150 min_items : 1
149151 max_items : 64
150152 }];
0 commit comments