Skip to content

Commit d107808

Browse files
Google APIscopybara-github
authored andcommitted
feat: Introduce DefaultRuntime to PipelineJob
PiperOrigin-RevId: 686283392
1 parent 841ff7b commit d107808

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

google/cloud/aiplatform/v1beta1/pipeline_job.proto

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,44 @@ message PipelineJob {
6464
}
6565
}
6666

67+
// Persistent resource based runtime detail. For more information, refer to
68+
// https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
69+
message PersistentResourceRuntimeDetail {
70+
// An enum that specifies the behavior to take if the timeout is reached.
71+
enum TaskResourceUnavailableTimeoutBehavior {
72+
// Unspecified. Behavior is same as `FAIL`.
73+
TASK_RESOURCE_UNAVAILABLE_TIMEOUT_BEHAVIOR_UNSPECIFIED = 0;
74+
75+
// Fail the task if the timeout is reached.
76+
FAIL = 1;
77+
78+
// Fall back to on-demand execution if the timeout is reached.
79+
FALL_BACK_TO_ON_DEMAND = 2;
80+
}
81+
82+
// Persistent resource name.
83+
// Format:
84+
// `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`
85+
string persistent_resource_name = 1;
86+
87+
// The max time a pipeline task waits for the required CPU, memory, or
88+
// accelerator resource to become available from the specified persistent
89+
// resource. Default wait time is 0.
90+
int64 task_resource_unavailable_wait_time_ms = 2;
91+
92+
// Specifies the behavior to take if the timeout is reached.
93+
TaskResourceUnavailableTimeoutBehavior
94+
task_resource_unavailable_timeout_behavior = 3;
95+
}
96+
97+
// The default runtime for the PipelineJob.
98+
message DefaultRuntime {
99+
oneof runtime_detail {
100+
// Persistent resource based runtime detail.
101+
PersistentResourceRuntimeDetail persistent_resource_runtime_detail = 1;
102+
}
103+
}
104+
67105
// Deprecated. Use
68106
// [RuntimeConfig.parameter_values][google.cloud.aiplatform.v1beta1.PipelineJob.RuntimeConfig.parameter_values]
69107
// instead. The runtime parameters of the PipelineJob. The parameters will
@@ -103,6 +141,12 @@ message PipelineJob {
103141
// The runtime artifacts of the PipelineJob. The key will be the input
104142
// artifact name and the value would be one of the InputArtifact.
105143
map<string, InputArtifact> input_artifacts = 5;
144+
145+
// Optional. The default runtime for the PipelineJob. If not provided,
146+
// Vertex Custom Job(on demand) is used as the runtime. For Vertex Custom
147+
// Job, please refer to
148+
// https://cloud.google.com/vertex-ai/docs/training/overview.
149+
DefaultRuntime default_runtime = 6 [(google.api.field_behavior) = OPTIONAL];
106150
}
107151

108152
// Output only. The resource name of the PipelineJob.

0 commit comments

Comments
 (0)