exclude db from watch files extensions#5800
Conversation
There was a problem hiding this comment.
Greptile Summary
This PR adds 'db' to the HOTRELOAD_IGNORE_EXTENSIONS tuple in reflex/utils/exec.py. This change prevents database files with the .db extension from triggering hot reloads during development in both Uvicorn and Granian backends.
The change integrates well with Reflex's existing hot reload system, which already ignores various file types that shouldn't cause application restarts (like .txt, .log, .json, .sqlite, etc.). Database files are frequently modified during normal application operation - whether through user interactions, background processes, or data synchronization - and these modifications don't represent code changes that require a server restart. By adding 'db' to the ignore list, the development experience becomes smoother as developers won't experience constant server restarts when their application's database is being actively used.
This follows the established pattern in Reflex where file extensions for data files, configuration files, and logs are excluded from hot reload monitoring. The change affects both the Uvicorn and Granian backend runners since they both use the same HOTRELOAD_IGNORE_EXTENSIONS constant.
Confidence score: 5/5
- This PR is safe to merge with minimal risk
- Score reflects a simple, well-justified addition that follows existing patterns and solves a common development friction point
- No files require special attention
1 file reviewed, no comments
CodSpeed Performance ReportMerging #5800 will not alter performanceComparing Summary
|
No description provided.