Overview
Getting Started
User Guides
API Reference
Development
Migration Guides
Spark SQL
Pandas API on Spark
Structured Streaming
MLlib (DataFrame-based)
Spark Streaming (Legacy)
MLlib (RDD-based)
Spark Core
Resource Management
Errors
pyspark.streaming.StreamingContext.awaitTermination
¶
StreamingContext.
awaitTermination
(
timeout
:
Optional
[
int
]
=
None
)
→ None
[source]
¶
Wait for the execution to stop.
Parameters
timeout
int, optional
time to wait in seconds
pyspark.streaming.StreamingContext.addStreamingListener
pyspark.streaming.StreamingContext.awaitTerminationOrTimeout