TaskContext.
cpus
CPUs allocated to the task.
the number of CPUs.
previous
pyspark.TaskContext.attemptNumber
next
pyspark.TaskContext.get