Skip to main content

isActive (StreamingQuery)

Returns whether this streaming query is currently active.

Returns

bool

Examples

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