Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Scheduling
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Scheduling
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
All parameters related to queuing and scheduling of custom jobs.
Instance Attribute Summary collapse
-
#restart_job_on_worker_restart ⇒ Boolean
(also: #restart_job_on_worker_restart?)
Restarts the entire CustomJob if a worker gets restarted.
-
#timeout ⇒ String
The maximum job running time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Scheduling
constructor
A new instance of GoogleCloudAiplatformV1beta1Scheduling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Scheduling
Returns a new instance of GoogleCloudAiplatformV1beta1Scheduling.
15521 15522 15523 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15521 def initialize(**args) update!(**args) end |
Instance Attribute Details
#restart_job_on_worker_restart ⇒ Boolean Also known as: restart_job_on_worker_restart?
Restarts the entire CustomJob if a worker gets restarted. This feature can be
used by distributed training jobs that are not resilient to workers leaving
and joining a job.
Corresponds to the JSON property restartJobOnWorkerRestart
15513 15514 15515 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15513 def restart_job_on_worker_restart @restart_job_on_worker_restart end |
#timeout ⇒ String
The maximum job running time. The default is 7 days.
Corresponds to the JSON property timeout
15519 15520 15521 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15519 def timeout @timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15526 15527 15528 15529 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 15526 def update!(**args) @restart_job_on_worker_restart = args[:restart_job_on_worker_restart] if args.key?(:restart_job_on_worker_restart) @timeout = args[:timeout] if args.key?(:timeout) end |