[ Web Proxy ]
URL:
Viewing: https://spark.apache.org/docs/latest/api/python/reference/api/../api/pyspark.TaskContext.cpus.html [Back]  [Original]

pyspark.TaskContext.cpus — PySpark 4.2.0 documentation Skip to main content
Search the docs ...:

pyspark.TaskContext.cpus#

TaskContext.cpus()[source]#

CPUs allocated to the task.

Returns
int

the number of CPUs.


Web Proxy Viewer  |  New URL  |  Original Page