Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Scheduling

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1Scheduling

Returns a new instance of GoogleCloudAiplatformV1beta1Scheduling.



19099
19100
19101
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19099

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

Instance Attribute Details

#disable_retriesBoolean 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

Returns:

  • (Boolean)


19077
19078
19079
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19077

def disable_retries
  @disable_retries
end

#max_wait_durationString

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

Returns:

  • (String)


19084
19085
19086
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19084

def max_wait_duration
  @max_wait_duration
end

#restart_job_on_worker_restartBoolean 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

Returns:

  • (Boolean)


19091
19092
19093
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19091

def restart_job_on_worker_restart
  @restart_job_on_worker_restart
end

#timeoutString

The maximum job running time. The default is 7 days. Corresponds to the JSON property timeout

Returns:

  • (String)


19097
19098
19099
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19097

def timeout
  @timeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19104
19105
19106
19107
19108
19109
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 19104

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