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: Read from local file stream to avoid locking during preview generation #4425

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jan 29, 2025

Should resolve #2092

We can always use the local file, it may be temporary or the file itself in the data directory, but we can read without locking.

@juliusknorr juliusknorr requested a review from elzody as a code owner January 29, 2025 09:44
@juliusknorr
Copy link
Member Author

Managed to confirm by using a larger file that takes longer processing time and meanwhile upload a new version of the file.

@juliusknorr juliusknorr added bug Something isn't working 3. to review Ready to be reviewed labels Jan 29, 2025
@juliusknorr juliusknorr force-pushed the fix/avoid-preview-lock branch from 35c2517 to 450728d Compare January 30, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Ready to be reviewed bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copying a file and renaming it in the same directory
2 participants