TaskContextImpl¶
TaskContextImpl
is a concrete TaskContext.
Creating Instance¶
TaskContextImpl
takes the following to be created:
- Stage ID
-
Stage
Execution Attempt ID - Partition ID
- Task Execution Attempt ID
- Attempt Number
- TaskMemoryManager
- Local Properties
- MetricsSystem
- TaskMetrics
- Resources
TaskContextImpl
is created when:
Task
is requested to run
Resources¶
TaskContext
resources: Map[String, ResourceInformation]
resources
is part of the TaskContext abstraction.
TaskContextImpl
can be given resources (names) when created.
The resources are given when a Task
is requested to run that in turn come from a TaskDescription (of a TaskRunner).
BarrierTaskContext¶
TaskContextImpl
is available to barrier tasks as a BarrierTaskContext.