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.



1438
1439
1440
# File 'generated/google/apis/ml_v1/classes.rb', line 1438

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)


1436
1437
1438
# File 'generated/google/apis/ml_v1/classes.rb', line 1436

def max_running_time
  @max_running_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1443
1444
1445
# File 'generated/google/apis/ml_v1/classes.rb', line 1443

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