pyspark.SparkContext.getLocalProperty

SparkContext.getLocalProperty(key: str) → Optional[str]

Get a local property set in this thread, or null if it is missing. See setLocalProperty().