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

Add process lock for remote filesystem scraper #562

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

ml-evs
Copy link
Member

@ml-evs ml-evs commented Feb 4, 2024

Closes #539.

This PR adds a (manual) database lock so that multiple processes do not try to scrape the same filesystems repeatedly, which is the case in production when there are multiple worker processes running the API.

Still need to add unit tests for this; i.e., manually updating the lock and making sure that stale locks (older than the min cache age) are correctly swept away.

Copy link

cypress bot commented Feb 4, 2024

Passing run #1807 ↗︎

0 40 0 0 Flakiness 0

Details:

Merge ead5751 into d779851...
Project: datalab Commit: b46f213e4b ℹ️
Status: Passed Duration: 01:55 💡
Started: May 18, 2024 10:57 PM Ended: May 18, 2024 10:59 PM

Review all test suite changes for PR #562 ↗︎

@ml-evs ml-evs added bug Something isn't working server labels Feb 13, 2024
@ml-evs ml-evs marked this pull request as ready for review May 16, 2024 14:39
@ml-evs ml-evs self-assigned this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority/high server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race condition in remote filesystem sync
1 participant