Class: Google::Cloud::Batch::V1::TaskStatus

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/batch/v1/task.rb

Overview

Status of a task

Defined Under Namespace

Modules: State

Instance Attribute Summary collapse

Instance Attribute Details

#state::Google::Cloud::Batch::V1::TaskStatus::State

Returns Task state.



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'proto_docs/google/cloud/batch/v1/task.rb', line 116

class TaskStatus
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Task states.
  module State
    # Unknown state.
    STATE_UNSPECIFIED = 0

    # The Task is created and waiting for resources.
    PENDING = 1

    # The Task is assigned to at least one VM.
    ASSIGNED = 2

    # The Task is running.
    RUNNING = 3

    # The Task has failed.
    FAILED = 4

    # The Task has succeeded.
    SUCCEEDED = 5

    # The Task has not been executed when the Job finishes.
    UNEXECUTED = 6
  end
end

#status_events::Array<::Google::Cloud::Batch::V1::StatusEvent>

Returns Detailed info about why the state is reached.

Returns:



116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'proto_docs/google/cloud/batch/v1/task.rb', line 116

class TaskStatus
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Task states.
  module State
    # Unknown state.
    STATE_UNSPECIFIED = 0

    # The Task is created and waiting for resources.
    PENDING = 1

    # The Task is assigned to at least one VM.
    ASSIGNED = 2

    # The Task is running.
    RUNNING = 3

    # The Task has failed.
    FAILED = 4

    # The Task has succeeded.
    SUCCEEDED = 5

    # The Task has not been executed when the Job finishes.
    UNEXECUTED = 6
  end
end