Class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/remotebuildexecution_v2/classes.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb

Overview

Describes the timeouts associated with this task.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts

Returns a new instance of GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts.



3286
3287
3288
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 3286

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#executionString

This specifies the maximum time that the task can run, excluding the time required to download inputs or upload outputs. That is, the worker will terminate the task if it runs longer than this. Corresponds to the JSON property execution

Returns:

  • (String)


3266
3267
3268
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 3266

def execution
  @execution
end

#idleString

This specifies the maximum amount of time the task can be idle - that is, go without generating some output in either stdout or stderr. If the process is silent for more than the specified time, the worker will terminate the task. Corresponds to the JSON property idle

Returns:

  • (String)


3274
3275
3276
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 3274

def idle
  @idle
end

#shutdownString

If the execution or IO timeouts are exceeded, the worker will try to gracefully terminate the task and return any existing logs. However, tasks may be hard-frozen in which case this process will fail. This timeout specifies how long to wait for a terminated task to shut down gracefully (e.g. via SIGTERM) before we bring down the hammer (e.g. SIGKILL on *nix, CTRL_BREAK_EVENT on Windows). Corresponds to the JSON property shutdown

Returns:

  • (String)


3284
3285
3286
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 3284

def shutdown
  @shutdown
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3291
3292
3293
3294
3295
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 3291

def update!(**args)
  @execution = args[:execution] if args.key?(:execution)
  @idle = args[:idle] if args.key?(:idle)
  @shutdown = args[:shutdown] if args.key?(:shutdown)
end