Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Scheduling
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Scheduling
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
All parameters related to queuing and scheduling of custom jobs.
Instance Attribute Summary collapse
-
#disable_retries ⇒ Boolean
(also: #disable_retries?)
Optional.
-
#max_wait_duration ⇒ String
Optional.
-
#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) ⇒ GoogleCloudAiplatformV1Scheduling
constructor
A new instance of GoogleCloudAiplatformV1Scheduling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1Scheduling
Returns a new instance of GoogleCloudAiplatformV1Scheduling.
18068 18069 18070 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18068 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disable_retries ⇒ Boolean Also known as: disable_retries?
Optional. Indicates if the job should retry for internal errors after the job
starts running. If true, overrides Scheduling.restart_job_on_worker_restart
to false.
Corresponds to the JSON property disableRetries
18046 18047 18048 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18046 def disable_retries @disable_retries end |
#max_wait_duration ⇒ String
Optional. This is the maximum time a user will wait in the QRM queue for
resources. Default is 1 day
Corresponds to the JSON property maxWaitDuration
18053 18054 18055 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18053 def max_wait_duration @max_wait_duration end |
#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
18060 18061 18062 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18060 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
18066 18067 18068 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18066 def timeout @timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18073 18074 18075 18076 18077 18078 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 18073 def update!(**args) @disable_retries = args[:disable_retries] if args.key?(:disable_retries) @max_wait_duration = args[:max_wait_duration] if args.key?(:max_wait_duration) @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 |