# Add cooldown when file watch limit is reached \(\#57720\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/32d0737318d3000c23212ff36ee57fde03fa090c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 32d0737318d3000c23212ff36ee57fde03fa090c

Requested commit: 32d0737318d3000c23212ff36ee57fde03fa090c

Commit: 32d0737318d3000c23212ff36ee57fde03fa090c

Tree: 5926c91b011ba09d4b01095f475601d51a92ba10

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
Add cooldown when file watch limit is reached (#57720)

Stop trying to add new watches for 5 seconds after receiving the "OS
file watch limit reached" error.

This was flooding the logs and many pointless syscalls.

Related to #57422, #57042, FR-18

Release Notes:

- Improved file watcher behavior when the OS file watch limit is
reached.
```

## Parents

- [80a4042ff584ea68b5d5a072926bdb9af4792b45](https://git.cafe/gitcafe/zed/commit/80a4042ff584ea68b5d5a072926bdb9af4792b45?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/32d0737318d3000c23212ff36ee57fde03fa090c?format=markdown)
