pyspark.SparkContext.cancelJobsWithTag

SparkContext.cancelJobsWithTag(tag: str) → None[source]

Cancel active jobs that have the specified tag. See SparkContext.addJobTag().

New in version 3.5.0.

Parameters
tagstr

The tag to be cancelled. Cannot contain ‘,’ (comma) character.