WorkerPoolTeardownPolicy enum
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.
Values
- teardownPolicyUnknown → const WorkerPoolTeardownPolicy
-
const WorkerPoolTeardownPolicy("TEARDOWN_POLICY_UNKNOWN") - teardownAlways → const WorkerPoolTeardownPolicy
-
const WorkerPoolTeardownPolicy("TEARDOWN_ALWAYS") - teardownOnSuccess → const WorkerPoolTeardownPolicy
-
const WorkerPoolTeardownPolicy("TEARDOWN_ON_SUCCESS") - teardownNever → const WorkerPoolTeardownPolicy
-
const WorkerPoolTeardownPolicy("TEARDOWN_NEVER")
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wireValue → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromValue(
String value) → WorkerPoolTeardownPolicy
Constants
-
values
→ const List<
WorkerPoolTeardownPolicy> - A constant List of the values in this enum, in order of their declaration.