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

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

Overview

Job scheduling options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobScheduling

Returns a new instance of JobScheduling.



1740
1741
1742
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1740

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 exiting 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)


1731
1732
1733
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1731

def max_failures_per_hour
  @max_failures_per_hour
end

#max_failures_totalFixnum

Optional. Maximum number of times in total a driver may be restarted as a result of driver exiting with non-zero code before job is reported failed. Maximum value is 240. Corresponds to the JSON property maxFailuresTotal

Returns:

  • (Fixnum)


1738
1739
1740
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1738

def max_failures_total
  @max_failures_total
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1745
1746
1747
1748
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1745

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