Skip to main content

active (StreamingQueryManager)

Returns a list of all active streaming queries associated with this SparkSession.

Returns

list of StreamingQuery

Examples

Python
sdf = spark.readStream.format("rate").load()
sq = sdf.writeStream.format('memory').queryName('this_query').start()
sqm = spark.streams
[q.name for q in sqm.active]
# ['this_query']
sq.stop()
On this page