---
title: active (StreamingQueryManager)
description: "StreamingQueryManager.active property in PySpark: Returns a list of all active streaming queries associated with this SparkSession."
canonical_url: https://docs.databricks.com/aws/en/pyspark/reference/classes/streamingquerymanager/active
---

# 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()
```
