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.



3013
3014
3015
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3013

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

Instance Attribute Details

#max_failures_per_hourFixnum

Optional. Maximum number of times per hour a driver can be restarted as a result of driver exiting with non-zero code before job is reported failed.A job might be reported as thrashing if the driver exits with a non-zero code four times within a 10-minute window.Maximum value is 10.Note: This restartable job option is not supported in Dataproc workflow templates (https:/ /cloud.google.com/dataproc/docs/concepts/workflows/using-workflows# adding_jobs_to_a_template). Corresponds to the JSON property maxFailuresPerHour

Returns:

  • (Fixnum)


3001
3002
3003
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3001

def max_failures_per_hour
  @max_failures_per_hour
end

#max_failures_totalFixnum

Optional. Maximum total number of times a driver can be restarted as a result of the driver exiting with a non-zero code. After the maximum number is reached, the job will be reported as failed.Maximum value is 240.Note: Currently, this restartable job option is not supported in Dataproc workflow templates (https://cloud.google.com/dataproc/docs/concepts/workflows/using- workflows#adding_jobs_to_a_template). Corresponds to the JSON property maxFailuresTotal

Returns:

  • (Fixnum)


3011
3012
3013
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3011

def max_failures_total
  @max_failures_total
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3018
3019
3020
3021
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3018

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