pyspark.BarrierTaskContext.stageId

BarrierTaskContext.stageId() → int

The ID of the stage that this task belong to.

Returns
int

current stage id.