Class: Google::Apis::DataprocV1::JobScheduling

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

Overview

Job scheduling options.Beta Feature: These options are available for testing purposes only. They may be changed before final release.

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) ⇒ JobScheduling

Returns a new instance of JobScheduling



124
125
126
# File 'generated/google/apis/dataproc_v1/classes.rb', line 124

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

Instance Attribute Details

#max_failures_per_hourFixnum

Optional. Maximum number of times per hour a driver may be restarted as a result of driver terminating with non-zero code before job is reported failed. A job may be reported as thrashing if driver exits with non-zero code 4 times within 10 minute window.Maximum value is 10. Corresponds to the JSON property maxFailuresPerHour

Returns:

  • (Fixnum)


122
123
124
# File 'generated/google/apis/dataproc_v1/classes.rb', line 122

def max_failures_per_hour
  @max_failures_per_hour
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



129
130
131
# File 'generated/google/apis/dataproc_v1/classes.rb', line 129

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