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.TaskContext.stageId
¶
TaskContext.
stageId
(
)
→ int
[source]
¶
The ID of the stage that this task belong to.
Returns
int
current stage id.
pyspark.TaskContext.resources
pyspark.TaskContext.taskAttemptId