RDD.
collectWithJobGroup
When collect rdd, use this method to specify job group.
New in version 3.0.0.
Deprecated since version 3.1.0: Use pyspark.InheritableThread with the pinned thread mode enabled.
pyspark.InheritableThread
The group ID to assign.
The description to set for the job group.
whether to interrupt jobs on job cancellation.
a list containing all the elements
See also
RDD.collect()
SparkContext.setJobGroup()