pyspark.SparkContext.cancelJobGroup

SparkContext.cancelJobGroup(groupId: str) → None

Cancel active jobs for the specified group. See SparkContext.setJobGroup(). for more information.