job_state.proto 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 = "JobStateProto";
  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. // Describes the state of a job.
  24. enum JobState {
  25. // The job state is unspecified.
  26. JOB_STATE_UNSPECIFIED = 0;
  27. // The job has been just created or resumed and processing has not yet begun.
  28. JOB_STATE_QUEUED = 1;
  29. // The service is preparing to run the job.
  30. JOB_STATE_PENDING = 2;
  31. // The job is in progress.
  32. JOB_STATE_RUNNING = 3;
  33. // The job completed successfully.
  34. JOB_STATE_SUCCEEDED = 4;
  35. // The job failed.
  36. JOB_STATE_FAILED = 5;
  37. // The job is being cancelled. From this state the job may only go to
  38. // either `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED` or `JOB_STATE_CANCELLED`.
  39. JOB_STATE_CANCELLING = 6;
  40. // The job has been cancelled.
  41. JOB_STATE_CANCELLED = 7;
  42. // The job has been stopped, and can be resumed.
  43. JOB_STATE_PAUSED = 8;
  44. // The job has expired.
  45. JOB_STATE_EXPIRED = 9;
  46. // The job is being updated. The job is only able to be updated at RUNNING
  47. // state; if the update operation succeeds, job goes back to RUNNING state; if
  48. // the update operation fails, the job goes back to RUNNING state with error
  49. // messages written to [ModelDeploymentMonitoringJob.partial_errors][] field
  50. // if it is a ModelDeploymentMonitoringJob.
  51. JOB_STATE_UPDATING = 10;
  52. }