pyspark.TaskContext.stageId

TaskContext.stageId() → int[source]

The ID of the stage that this task belong to.