Skip to main content

stop (StreamingQuery)

Stops this streaming query.

Syntax

stop()

Returns

None

Examples

Python
sdf = spark.readStream.format("rate").load()
sq = sdf.writeStream.format('memory').queryName('this_query').start()
sq.isActive
# True
sq.stop()
sq.isActive
# False