pyspark.TaskContext.cpus — PySpark In-Progress documentation
CPUs allocated to the task.
the number of CPUs.