---
title: stop (StreamingQuery)
description: "StreamingQuery.stop method in PySpark: Stops this streaming query."
canonical_url: https://docs.databricks.com/aws/en/pyspark/reference/classes/streamingquery/stop
---

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