Class: Google::Apis::MlV1::GoogleCloudMlV1Scheduling
- Inherits:
-
Object
- Object
- Google::Apis::MlV1::GoogleCloudMlV1Scheduling
- 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
-
#max_running_time ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudMlV1Scheduling
constructor
A new instance of GoogleCloudMlV1Scheduling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_time ⇒ String
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
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 |