stop(stopSparkContext: bool = True, stopGraceFully: bool = False) → None¶
Stop the execution of the streams, with option of ensuring all received data has been processed.
- stopSparkContextbool, optional
Stop the associated SparkContext or not
- stopGracefullybool, optional
Stop gracefully by waiting for the processing of all received data to be completed