TaskContext.
resources
Resources allocated to the task. The key is the resource name and the value is information about the resource.
previous
pyspark.TaskContext.partitionId
next
pyspark.TaskContext.stageId