Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: write lock for warmup #563

Merged
merged 4 commits into from Feb 20, 2024
Merged

fix: write lock for warmup #563

merged 4 commits into from Feb 20, 2024

Conversation

xgui3783
Copy link
Member

Since warmup writes files, it is potentially possible to have multiple process trying to warmup simultaneously.

This PR prevents simultaneous write by using a FileLock (or SoftFileLock in windows).

Copy link
Collaborator

@AhmetNSimsek AhmetNSimsek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment, otherwise LGTM

@codecov-commenter
Copy link

codecov-commenter commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5a0e6b3) 36.81% compared to head (739d7c7) 53.31%.
Report is 394 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #563       +/-   ##
===========================================
+ Coverage   36.81%   53.31%   +16.49%     
===========================================
  Files          61       69        +8     
  Lines        5421     6645     +1224     
===========================================
+ Hits         1996     3543     +1547     
+ Misses       3425     3102      -323     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xgui3783
Copy link
Member Author

fixed comments

@AhmetNSimsek can you take a look again?

@AhmetNSimsek AhmetNSimsek merged commit 31c2567 into main Feb 20, 2024
27 checks passed
@AhmetNSimsek AhmetNSimsek deleted the fix_warmupFileLock branch February 20, 2024 09:30
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.

None yet

3 participants