• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.cloud.aiplatform.v1;
18
19option csharp_namespace = "Google.Cloud.AIPlatform.V1";
20option go_package = "cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb";
21option java_multiple_files = true;
22option java_outer_classname = "PipelineFailurePolicyProto";
23option java_package = "com.google.cloud.aiplatform.v1";
24option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
25option ruby_package = "Google::Cloud::AIPlatform::V1";
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.
33enum 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}
45