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 RuntimeError in covid_datasette example #701

Merged
merged 12 commits into from
Apr 18, 2024

Conversation

devin-ai-integration[bot]
Copy link
Contributor

This PR removes the volume.reload() and volume.commit() operations from the load_daily_reports and prep_db functions to prevent the RuntimeError related to open files during volume operations.

@charlesfrye
Copy link
Collaborator

devin's commits didn't actually fix issue -- just removed the volume reload before updating the DB, which is probably technically fine for this example but not correct practice

ended up fixing it by moving the .reload into the main function, rather than the generator/coroutine. not sure exactly why that changes the actual order of operations for opening versus reloading

@charlesfrye charlesfrye merged commit 3b1a641 into main Apr 18, 2024
4 checks passed
@charlesfrye charlesfrye deleted the devin-ai/fix-covid-datasette branch April 18, 2024 06:37
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.

1 participant