pyspark.BarrierTaskContext.allGather¶
-
BarrierTaskContext.
allGather
(message: str = '') → List[str]¶ This function blocks until all tasks in the same stage have reached this routine. Each task passes in a message and returns with a list of all the messages passed in by each of those tasks.
Warning
In a barrier stage, each task much have the same number of allGather() calls, in all possible code branches. Otherwise, you may get the job hanging or a SparkException after timeout.
Notes
This API is experimental