pyspark.streaming.StreamingContext.getActive

classmethod StreamingContext.getActive() → Optional[pyspark.streaming.context.StreamingContext][source]

Return either the currently active StreamingContext (i.e., if there is a context started but not stopped) or None.