Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Scheduling

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1Scheduling

Returns a new instance of GoogleCloudAiplatformV1Scheduling.



22593
22594
22595
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22593

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)


22564
22565
22566
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22564

def disable_retries
  @disable_retries
end

#max_wait_durationString

Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy. DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours. Corresponds to the JSON property maxWaitDuration

Returns:

  • (String)


22573
22574
22575
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22573

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)


22580
22581
22582
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22580

def restart_job_on_worker_restart
  @restart_job_on_worker_restart
end

#strategyString

Optional. This determines which type of scheduling strategy to use. Corresponds to the JSON property strategy

Returns:

  • (String)


22586
22587
22588
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22586

def strategy
  @strategy
end

#timeoutString

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

Returns:

  • (String)


22591
22592
22593
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22591

def timeout
  @timeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22598
22599
22600
22601
22602
22603
22604
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22598

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)
  @strategy = args[:strategy] if args.key?(:strategy)
  @timeout = args[:timeout] if args.key?(:timeout)
end