|
| 1 | +// Copyright 2022 Google LLC |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +syntax = "proto3"; |
| 16 | + |
| 17 | +package google.cloud.aiplatform.v1beta1; |
| 18 | + |
| 19 | +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; |
| 20 | +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; |
| 21 | +option java_multiple_files = true; |
| 22 | +option java_outer_classname = "PipelineFailurePolicyProto"; |
| 23 | +option java_package = "com.google.cloud.aiplatform.v1beta1"; |
| 24 | +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; |
| 25 | +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; |
| 26 | + |
| 27 | +// Represents the failure policy of a pipeline. Currently, the default of a |
| 28 | +// pipeline is that the pipeline will continue to run until no more tasks can be |
| 29 | +// executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a |
| 30 | +// pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling |
| 31 | +// any new tasks when a task has failed. Any scheduled tasks will continue to |
| 32 | +// completion. |
| 33 | +enum PipelineFailurePolicy { |
| 34 | + // Default value, and follows fail slow behavior. |
| 35 | + PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0; |
| 36 | + |
| 37 | + // Indicates that the pipeline should continue to run until all possible |
| 38 | + // tasks have been scheduled and completed. |
| 39 | + PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1; |
| 40 | + |
| 41 | + // Indicates that the pipeline should stop scheduling new tasks after a task |
| 42 | + // has failed. |
| 43 | + PIPELINE_FAILURE_POLICY_FAIL_FAST = 2; |
| 44 | +} |
0 commit comments