Class: Google::Apis::DataprocV1::JobScheduling
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::JobScheduling
- 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
-
#max_failures_per_hour ⇒ Fixnum
Optional.
-
#max_failures_total ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobScheduling
constructor
A new instance of JobScheduling.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobScheduling
Returns a new instance of JobScheduling.
2441 2442 2443 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2441 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_failures_per_hour ⇒ Fixnum
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.Note: Currently, this restartable
job option is not supported in Dataproc workflow template (https://cloud.
google.com/dataproc/docs/concepts/workflows/using-workflows#
adding_jobs_to_a_template) jobs.
Corresponds to the JSON property maxFailuresPerHour
2430 2431 2432 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2430 def max_failures_per_hour @max_failures_per_hour end |
#max_failures_total ⇒ Fixnum
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.Note: Currently, this restartable job option is not
supported in Dataproc workflow template (https://cloud.google.com/dataproc/
docs/concepts/workflows/using-workflows#adding_jobs_to_a_template) jobs.
Corresponds to the JSON property maxFailuresTotal
2439 2440 2441 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2439 def max_failures_total @max_failures_total end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2446 2447 2448 2449 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2446 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 |