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.



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# File 'proto_docs/google/cloud/batch/v1/task.rb', line 128

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:



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# File 'proto_docs/google/cloud/batch/v1/task.rb', line 128

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