pyspark.TaskContext.cpus#

TaskContext.cpus()[source]#

CPUs allocated to the task.

Returns
int

the number of CPUs.