---
title: stop (DataSourceStreamReader)
description: "DataSourceStreamReader.stop method in PySpark: Stops this source and frees any resources it has allocated."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/datasourcestreamreader/stop
---

# stop (DataSourceStreamReader)

Stops this source and frees any resources it has allocated.

Invoked when the streaming query is terminated.

*Added in Databricks Runtime 15.2*

## Syntax

```
stop()
```
