Class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/remotebuildexecution_v1/classes.rb,
lib/google/apis/remotebuildexecution_v1/representations.rb,
lib/google/apis/remotebuildexecution_v1/representations.rb
Overview
Describes the timeouts associated with this task.
Instance Attribute Summary collapse
-
#execution ⇒ String
This specifies the maximum time that the task can run, excluding the time required to download inputs or upload outputs.
-
#idle ⇒ String
This specifies the maximum amount of time the task can be idle - that is, go without generating some output in either stdout or stderr.
-
#shutdown ⇒ String
If the execution or IO timeouts are exceeded, the worker will try to gracefully terminate the task and return any existing logs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts
constructor
A new instance of GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts
Returns a new instance of GoogleDevtoolsRemoteworkersV1test2CommandTaskTimeouts.
2767 2768 2769 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2767 def initialize(**args) update!(**args) end |
Instance Attribute Details
#execution ⇒ String
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
2748 2749 2750 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2748 def execution @execution end |
#idle ⇒ String
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
2755 2756 2757 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2755 def idle @idle end |
#shutdown ⇒ String
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
2765 2766 2767 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2765 def shutdown @shutdown end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2772 2773 2774 2775 2776 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 2772 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 |