WorkerPoolTeardownPolicy

enum WorkerPoolTeardownPolicy : Enum<WorkerPoolTeardownPolicy> , ConvertibleToJava<WorkerPoolTeardownPolicy>

Sets the policy for determining when to turndown worker pool. Allowed values are: TEARDOWN_ALWAYS, TEARDOWN_ON_SUCCESS, and TEARDOWN_NEVER. TEARDOWN_ALWAYS means workers are always torn down regardless of whether the job succeeds. TEARDOWN_ON_SUCCESS means workers are torn down if the job succeeds. TEARDOWN_NEVER means the workers are never torn down. If the workers are not torn down by the service, they will continue to run and use Google Compute Engine VM resources in the user's project until they are explicitly terminated by the user. Because of this, Google recommends using the TEARDOWN_ALWAYS policy except for small, manually supervised test jobs. If unknown or unspecified, the service will attempt to choose a reasonable default.

Entries

Link copied to clipboard

The teardown policy isn't specified, or is unknown.

Link copied to clipboard

Always teardown the resource.

Link copied to clipboard

Teardown the resource on success. This is useful for debugging failures.

Link copied to clipboard

Never teardown the resource. This is useful for debugging and development.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun toJava(): WorkerPoolTeardownPolicy
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
val javaValue: WorkerPoolTeardownPolicy
Link copied to clipboard
Link copied to clipboard