Skip to content

Add cooldown when file watch limit is reached#57720

Merged
osyvokon merged 3 commits into
mainfrom
watch-limit-cooldown
May 27, 2026
Merged

Add cooldown when file watch limit is reached#57720
osyvokon merged 3 commits into
mainfrom
watch-limit-cooldown

Conversation

@osyvokon

Copy link
Copy Markdown
Contributor

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.

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

This was overflowing logs and making many pointless syscalls.

Related to #57422, #57042, FR-18

Release Notes:

- Improved file watcher behavior when the OS file watch limit is reached.
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label May 26, 2026
@smitbarmase smitbarmase added the staff Pull requests authored by a current member of Zed staff label May 26, 2026
@osyvokon osyvokon enabled auto-merge May 26, 2026 19:42
@osyvokon osyvokon added this pull request to the merge queue May 27, 2026
Merged via the queue into main with commit 32d0737 May 27, 2026
32 checks passed
@osyvokon osyvokon deleted the watch-limit-cooldown branch May 27, 2026 15:38
TomPlanche pushed a commit to TomPlanche/zed that referenced this pull request Jun 2, 2026
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 zed-industries#57422, zed-industries#57042, FR-18

Release Notes:

- Improved file watcher behavior when the OS file watch limit is
reached.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants