pyspark.streaming.StreamingContext.awaitTermination

StreamingContext.awaitTermination(timeout: Optional[int] = None) → None[source]

Wait for the execution to stop.

Parameters
timeoutint, optional

time to wait in seconds