pyspark.TaskContext.stageId

TaskContext.stageId() → int[source]

The ID of the stage that this task belong to.

Returns
int

current stage id.