StreamingQuery.
isActive
Whether this streaming query is currently active or not.
New in version 2.0.0.
The result whether specified streaming query is currently active or not.
Examples
>>> sdf = spark.readStream.format("rate").load() >>> sq = sdf.writeStream.format('memory').queryName('this_query').start() >>> sq.isActive True
>>> sq.stop()