TaskSpec class
Spec of a task
Constructors
-
TaskSpec({ComputeResource? computeResource, Environment? environment, Map<
String, String> ? environments, List<LifecyclePolicy> ? lifecyclePolicies, int? maxRetryCount, String? maxRunDuration, List<Runnable> ? runnables, List<Volume> ? volumes}) - TaskSpec.fromJson(Map json_)
Properties
- computeResource ↔ ComputeResource?
-
ComputeResource requirements.
getter/setter pair
- environment ↔ Environment?
-
Environment variables to set before running the Task.
getter/setter pair
-
environments
↔ Map<
String, String> ? -
Deprecated: please use environment(non-plural) instead.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lifecyclePolicies
↔ List<
LifecyclePolicy> ? -
Lifecycle management schema when any task in a task group is failed.
getter/setter pair
- maxRetryCount ↔ int?
-
Maximum number of retries on failures.
getter/setter pair
- maxRunDuration ↔ String?
-
Maximum duration the task should run.
getter/setter pair
-
runnables
↔ List<
Runnable> ? -
The sequence of scripts or containers to run for this Task.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
volumes
↔ List<
Volume> ? -
Volumes to mount before running Tasks using this TaskSpec.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited