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.
4373 4374 4375 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4373 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_failures_per_hour ⇒ Fixnum
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
4361 4362 4363 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4361 def max_failures_per_hour @max_failures_per_hour end |
#max_failures_total ⇒ Fixnum
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
4371 4372 4373 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4371 def max_failures_total @max_failures_total end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4378 4379 4380 4381 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 4378 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 |