BarrierTaskContext.stageId()#

The ID of the stage that this task belong to.

Returns
int

current stage id.