Class: Google::Cloud::AIPlatform::V1::Scheduling
- Inherits:
-
Object
- Object
- Google::Cloud::AIPlatform::V1::Scheduling
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/aiplatform/v1/custom_job.rb
Overview
All parameters related to queuing and scheduling of custom jobs.
Defined Under Namespace
Modules: Strategy
Instance Attribute Summary collapse
-
#disable_retries ⇒ ::Boolean
Optional.
-
#max_wait_duration ⇒ ::Google::Protobuf::Duration
Optional.
-
#restart_job_on_worker_restart ⇒ ::Boolean
Optional.
-
#strategy ⇒ ::Google::Cloud::AIPlatform::V1::Scheduling::Strategy
Optional.
-
#timeout ⇒ ::Google::Protobuf::Duration
Optional.
Instance Attribute Details
#disable_retries ⇒ ::Boolean
Returns Optional. Indicates if the job should retry for internal errors after the
job starts running. If true, overrides
Scheduling.restart_job_on_worker_restart
to false.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
# File 'proto_docs/google/cloud/aiplatform/v1/custom_job.rb', line 354 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Optional. This determines which type of scheduling strategy to use. Right # now users have two options such as STANDARD which will use regular on # demand resources to schedule the job, the other is SPOT which would # leverage spot resources alongwith regular resources to schedule # the job. module Strategy # Strategy will default to STANDARD. STRATEGY_UNSPECIFIED = 0 # Deprecated. Regular on-demand provisioning strategy. ON_DEMAND = 1 # Deprecated. Low cost by making potential use of spot resources. LOW_COST = 2 # Standard provisioning strategy uses regular on-demand resources. STANDARD = 3 # Spot provisioning strategy uses spot resources. SPOT = 4 # Flex Start strategy uses DWS to queue for resources. FLEX_START = 6 end end |
#max_wait_duration ⇒ ::Google::Protobuf::Duration
Returns Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
# File 'proto_docs/google/cloud/aiplatform/v1/custom_job.rb', line 354 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Optional. This determines which type of scheduling strategy to use. Right # now users have two options such as STANDARD which will use regular on # demand resources to schedule the job, the other is SPOT which would # leverage spot resources alongwith regular resources to schedule # the job. module Strategy # Strategy will default to STANDARD. STRATEGY_UNSPECIFIED = 0 # Deprecated. Regular on-demand provisioning strategy. ON_DEMAND = 1 # Deprecated. Low cost by making potential use of spot resources. LOW_COST = 2 # Standard provisioning strategy uses regular on-demand resources. STANDARD = 3 # Spot provisioning strategy uses spot resources. SPOT = 4 # Flex Start strategy uses DWS to queue for resources. FLEX_START = 6 end end |
#restart_job_on_worker_restart ⇒ ::Boolean
Returns Optional. Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
# File 'proto_docs/google/cloud/aiplatform/v1/custom_job.rb', line 354 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Optional. This determines which type of scheduling strategy to use. Right # now users have two options such as STANDARD which will use regular on # demand resources to schedule the job, the other is SPOT which would # leverage spot resources alongwith regular resources to schedule # the job. module Strategy # Strategy will default to STANDARD. STRATEGY_UNSPECIFIED = 0 # Deprecated. Regular on-demand provisioning strategy. ON_DEMAND = 1 # Deprecated. Low cost by making potential use of spot resources. LOW_COST = 2 # Standard provisioning strategy uses regular on-demand resources. STANDARD = 3 # Spot provisioning strategy uses spot resources. SPOT = 4 # Flex Start strategy uses DWS to queue for resources. FLEX_START = 6 end end |
#strategy ⇒ ::Google::Cloud::AIPlatform::V1::Scheduling::Strategy
Returns Optional. This determines which type of scheduling strategy to use.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
# File 'proto_docs/google/cloud/aiplatform/v1/custom_job.rb', line 354 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Optional. This determines which type of scheduling strategy to use. Right # now users have two options such as STANDARD which will use regular on # demand resources to schedule the job, the other is SPOT which would # leverage spot resources alongwith regular resources to schedule # the job. module Strategy # Strategy will default to STANDARD. STRATEGY_UNSPECIFIED = 0 # Deprecated. Regular on-demand provisioning strategy. ON_DEMAND = 1 # Deprecated. Low cost by making potential use of spot resources. LOW_COST = 2 # Standard provisioning strategy uses regular on-demand resources. STANDARD = 3 # Spot provisioning strategy uses spot resources. SPOT = 4 # Flex Start strategy uses DWS to queue for resources. FLEX_START = 6 end end |
#timeout ⇒ ::Google::Protobuf::Duration
Returns Optional. The maximum job running time. The default is 7 days.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 |
# File 'proto_docs/google/cloud/aiplatform/v1/custom_job.rb', line 354 class Scheduling include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Optional. This determines which type of scheduling strategy to use. Right # now users have two options such as STANDARD which will use regular on # demand resources to schedule the job, the other is SPOT which would # leverage spot resources alongwith regular resources to schedule # the job. module Strategy # Strategy will default to STANDARD. STRATEGY_UNSPECIFIED = 0 # Deprecated. Regular on-demand provisioning strategy. ON_DEMAND = 1 # Deprecated. Low cost by making potential use of spot resources. LOW_COST = 2 # Standard provisioning strategy uses regular on-demand resources. STANDARD = 3 # Spot provisioning strategy uses spot resources. SPOT = 4 # Flex Start strategy uses DWS to queue for resources. FLEX_START = 6 end end |