Commit Graph
12 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 267ac5c3ca Refactor src/utils/file_lock.py to reduce duplication
Extracts common logic for path preparation and lock acquisition into a private helper function `_get_portalocker_lock`. This simplifies `exclusive_lock` and `shared_lock` implementations.

Also updates the docstring for `exclusive_lock` to correctly describe the file mode as "binary read/write mode" (r+b) instead of "binary append mode".

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-16 17:43:29 +00:00
thePR0M3TH3AN 2772a11d84 Fix Windows exclusive lock test 2025-07-05 13:27:12 -04:00
thePR0M3TH3AN 5269030d06 Add concurrency stress test and minor path typing 2025-07-01 14:10:47 -04:00
thePR0M3TH3AN c05123c638 Fix shared_lock timeout handling 2025-06-30 14:43:37 -04:00
thePR0M3TH3AN 0a41bd84b9 Fix exclusive_lock indefinite wait 2025-06-30 14:30:56 -04:00
thePR0M3TH3AN a2a3236248 Add shared file lock and concurrency test 2025-06-29 22:58:43 -04:00
thePR0M3TH3AN c0ddedce54 Relax lock timing assertion 2025-06-29 18:42:51 -04:00
thePR0M3TH3AN c02f8d9c10 Use portalocker for cross-platform locking 2025-06-29 17:44:32 -04:00
thePR0M3TH3AN 4698384b5d Format key_manager 2025-06-29 14:51:17 -04:00
thePR0M3TH3AN 7d4eef2110 update 2024-10-26 22:56:57 -04:00
Keep Creating Online 412296d545 update 2024-10-19 20:46:23 -04:00
Keep Creating Online c6a768131d update 2024-10-19 19:55:59 -04:00