Overview
Getting Started
User Guides
API Reference
Development
Migration Guides
Spark SQL
Pandas API on Spark
Structured Streaming
MLlib (DataFrame-based)
Spark Streaming (Legacy)
MLlib (RDD-based)
Spark Core
Resource Management
Errors
pyspark.BarrierTaskContext.cpus
¶
BarrierTaskContext.
cpus
(
)
→ int
¶
CPUs allocated to the task.
Returns
int
the number of CPUs.
pyspark.BarrierTaskContext.barrier
pyspark.BarrierTaskContext.get