StreamingContext.
awaitTerminationOrTimeout
Wait for the execution to stop. Return true if it’s stopped; or throw the reported error during the execution; or false if the waiting time elapsed before returning from the method.
time to wait in seconds
previous
pyspark.streaming.StreamingContext.awaitTermination
next
pyspark.streaming.StreamingContext.checkpoint