Skip to content

✨ feat: support force polling when watch files#61

Merged
SigureMo merged 2 commits intomainfrom
support-force-polling-when-watch-files
Sep 2, 2025
Merged

✨ feat: support force polling when watch files#61
SigureMo merged 2 commits intomainfrom
support-force-polling-when-watch-files

Conversation

@SigureMo
Copy link
Contributor

@SigureMo SigureMo commented Sep 2, 2025

参考 samuelcolvin/watchfiles#341,添加参数 --force-polling 以允许强制轮询,避免部分机器出现 OSError: OS file watch limit reached.,虽然确实会消耗一些 CPU(默认 0.3s 轮询一次)1,但总比用不了好(反正在服务器上喵)

Footnotes

  1. https://watchfiles.helpmanual.io/api/watch/?h=force_polling#watchfiles.awatch

@SigureMo SigureMo merged commit 673ef4b into main Sep 2, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant