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

Database retry mechanism #369

Merged
merged 12 commits into from
Oct 26, 2022
Merged

Database retry mechanism #369

merged 12 commits into from
Oct 26, 2022

Conversation

edwinkortman
Copy link
Contributor

Fixes #346

@edwinkortman edwinkortman self-assigned this Oct 24, 2022
{
using var db = new CacheContext(Configuration.CacheDir);
var entry = db.CachedGitSources.Find(hash);
var entry = CacheManager.GetCacheDb().RetrieveCachedGitSource(new CachedGitSourceId(repositoryId));
Copy link
Member

Choose a reason for hiding this comment

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

Could RetrieveCachedGitSource take the repositoryId as the parameter instead of passing a CachedGitSourceId object?

Co-Authored-By: Kimarie Hoot <52430349+klhoot@users.noreply.github.com>
Co-Authored-By: Edwin Kortman <7047894+edwinkortman@users.noreply.github.com>
@edwinkortman edwinkortman merged commit 6f06cdf into main Oct 26, 2022
@edwinkortman edwinkortman deleted the database-retry-mechanism branch October 26, 2022 15:23
@github-actions github-actions bot locked and limited conversation to collaborators Oct 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle "database is locked" error when writing to cache database
2 participants