Class: Google::Apis::MlV1::GoogleCloudMlV1Scheduling

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/ml_v1/classes.rb,
generated/google/apis/ml_v1/representations.rb,
generated/google/apis/ml_v1/representations.rb

Overview

All parameters related to scheduling of training jobs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudMlV1Scheduling

Returns a new instance of GoogleCloudMlV1Scheduling.



2073
2074
2075
# File 'generated/google/apis/ml_v1/classes.rb', line 2073

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

Instance Attribute Details

#max_running_timeString

Optional. The maximum job running time, expressed in seconds. The field can contain up to nine fractional digits, terminated by s. By default there is no limit to the running time. If the training job is still running after this duration, AI Platform Training cancels it. For example, if you want to ensure your job runs for no more than 2 hours, set this field to 7200s (2 hours * 60 minutes / hour * 60 seconds / minute). If you submit your training job using the gcloud tool, you can provide this field in a config.yaml file. For example:

trainingInput:
...
scheduling:
maxRunningTime: 7200s
...

Corresponds to the JSON property maxRunningTime

Returns:

  • (String)


2071
2072
2073
# File 'generated/google/apis/ml_v1/classes.rb', line 2071

def max_running_time
  @max_running_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2078
2079
2080
# File 'generated/google/apis/ml_v1/classes.rb', line 2078

def update!(**args)
  @max_running_time = args[:max_running_time] if args.key?(:max_running_time)
end