Skip to content

fix(embed): add retry with backoff for Windows file lock - #3105

Closed
asorry75 wants to merge 1 commit into
vectorize-io:mainfrom
asorry75:fix/lock-file-retry
Closed

fix(embed): add retry with backoff for Windows file lock#3105
asorry75 wants to merge 1 commit into
vectorize-io:mainfrom
asorry75:fix/lock-file-retry

Conversation

@asorry75

Copy link
Copy Markdown

msvcrt.LK_LOCK blocks until released, but concurrent lock attempts on Windows can fail with EACCES (Errno 36) when two processes race to acquire the profile lock during daemon startup.

Add retry loop with exponential backoff (0.1s, 0.2s, 0.4s, 0.8s). After 5 attempts the original OSError is re-raised.

Closes #3100

msvcrt.LK_LOCK blocks until released, but concurrent lock attempts
on Windows can fail with EACCES (Errno 36) when two processes
race to acquire the profile lock during daemon startup.

Add retry loop with exponential backoff (0.1s, 0.2s, 0.4s, 0.8s).
After 5 attempts the original OSError is re-raised.

Closes vectorize-io#3100
@asorry75 asorry75 closed this Aug 2, 2026
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.

Bug: Concurrent daemon startup can fail with a blocking file lock on Windows (profile_manager.py)

1 participant