pyspark.BarrierTaskContext.get¶
- 
classmethod BarrierTaskContext.get() → pyspark.taskcontext.BarrierTaskContext[source]¶
- Return the currently active - BarrierTaskContext. This can be called inside of user functions to access contextual information about running tasks.- Notes - Must be called on the worker, not the driver. Returns - Noneif not initialized. An Exception will raise if it is not in a barrier stage.- This API is experimental