pyspark.SparkContext.getJobTags#

SparkContext.getJobTags()[source]#

Get the tags that are currently set to be assigned to all the jobs started by this thread.

Added in version 3.5.0.

Returns:
set of str

the tags that are currently set to be assigned to all the jobs started by this thread.

Examples

>>> sc.addJobTag("job_to_cancel")
>>> sc.getJobTags()
{'job_to_cancel'}
>>> sc.clearJobTags()