Class: Google::Apis::BatchV1::AgentTaskRunnable
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::AgentTaskRunnable
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/batch_v1/classes.rb,
lib/google/apis/batch_v1/representations.rb,
lib/google/apis/batch_v1/representations.rb
Overview
AgentTaskRunnable is the Runnable representation between Agent and CLH communication.
Instance Attribute Summary collapse
-
#always_run ⇒ Boolean
(also: #always_run?)
By default, after a Runnable fails, no further Runnable are executed.
-
#background ⇒ Boolean
(also: #background?)
This flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables.
-
#container ⇒ Google::Apis::BatchV1::AgentContainer
Container runnable representation on the agent side.
-
#environment ⇒ Google::Apis::BatchV1::AgentEnvironment
AgentEnvironment is the Environment representation between Agent and CLH communication.
-
#ignore_exit_status ⇒ Boolean
(also: #ignore_exit_status?)
Normally, a non-zero exit status causes the Task to fail.
-
#script ⇒ Google::Apis::BatchV1::AgentScript
Script runnable representation on the agent side.
-
#timeout ⇒ String
Timeout for this Runnable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AgentTaskRunnable
constructor
A new instance of AgentTaskRunnable.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AgentTaskRunnable
Returns a new instance of AgentTaskRunnable.
510 511 512 |
# File 'lib/google/apis/batch_v1/classes.rb', line 510 def initialize(**args) update!(**args) end |
Instance Attribute Details
#always_run ⇒ Boolean Also known as: always_run?
By default, after a Runnable fails, no further Runnable are executed. This
flag indicates that this Runnable must be run even if the Task has already
failed. This is useful for Runnables that copy output files off of the VM or
for debugging. The always_run flag does not override the Task's overall
max_run_duration. If the max_run_duration has expired then no further
Runnables will execute, not even always_run Runnables.
Corresponds to the JSON property alwaysRun
471 472 473 |
# File 'lib/google/apis/batch_v1/classes.rb', line 471 def always_run @always_run end |
#background ⇒ Boolean Also known as: background?
This flag allows a Runnable to continue running in the background while the
Task executes subsequent Runnables. This is useful to provide services to
other Runnables (or to provide debugging support tools like SSH servers).
Corresponds to the JSON property background
479 480 481 |
# File 'lib/google/apis/batch_v1/classes.rb', line 479 def background @background end |
#container ⇒ Google::Apis::BatchV1::AgentContainer
Container runnable representation on the agent side.
Corresponds to the JSON property container
485 486 487 |
# File 'lib/google/apis/batch_v1/classes.rb', line 485 def container @container end |
#environment ⇒ Google::Apis::BatchV1::AgentEnvironment
AgentEnvironment is the Environment representation between Agent and CLH
communication. The environment is used in both task level and agent level.
Corresponds to the JSON property environment
491 492 493 |
# File 'lib/google/apis/batch_v1/classes.rb', line 491 def environment @environment end |
#ignore_exit_status ⇒ Boolean Also known as: ignore_exit_status?
Normally, a non-zero exit status causes the Task to fail. This flag allows
execution of other Runnables to continue instead.
Corresponds to the JSON property ignoreExitStatus
497 498 499 |
# File 'lib/google/apis/batch_v1/classes.rb', line 497 def ignore_exit_status @ignore_exit_status end |
#script ⇒ Google::Apis::BatchV1::AgentScript
Script runnable representation on the agent side.
Corresponds to the JSON property script
503 504 505 |
# File 'lib/google/apis/batch_v1/classes.rb', line 503 def script @script end |
#timeout ⇒ String
Timeout for this Runnable.
Corresponds to the JSON property timeout
508 509 510 |
# File 'lib/google/apis/batch_v1/classes.rb', line 508 def timeout @timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
515 516 517 518 519 520 521 522 523 |
# File 'lib/google/apis/batch_v1/classes.rb', line 515 def update!(**args) @always_run = args[:always_run] if args.key?(:always_run) @background = args[:background] if args.key?(:background) @container = args[:container] if args.key?(:container) @environment = args[:environment] if args.key?(:environment) @ignore_exit_status = args[:ignore_exit_status] if args.key?(:ignore_exit_status) @script = args[:script] if args.key?(:script) @timeout = args[:timeout] if args.key?(:timeout) end |