pipeline_failure_policy.proto 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. syntax = "proto3";
  15. package google.cloud.aiplatform.v1;
  16. option csharp_namespace = "Google.Cloud.AIPlatform.V1";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "PipelineFailurePolicyProto";
  20. option java_package = "com.google.cloud.aiplatform.v1";
  21. option php_namespace = "Google\\Cloud\\AIPlatform\\V1";
  22. option ruby_package = "Google::Cloud::AIPlatform::V1";
  23. // Represents the failure policy of a pipeline. Currently, the default of a
  24. // pipeline is that the pipeline will continue to run until no more tasks can be
  25. // executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a
  26. // pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling
  27. // any new tasks when a task has failed. Any scheduled tasks will continue to
  28. // completion.
  29. enum PipelineFailurePolicy {
  30. // Default value, and follows fail slow behavior.
  31. PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0;
  32. // Indicates that the pipeline should continue to run until all possible
  33. // tasks have been scheduled and completed.
  34. PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1;
  35. // Indicates that the pipeline should stop scheduling new tasks after a task
  36. // has failed.
  37. PIPELINE_FAILURE_POLICY_FAIL_FAST = 2;
  38. }