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

Move model update to a db migration. #77

Merged
merged 1 commit into from
Jan 19, 2024
Merged

Move model update to a db migration. #77

merged 1 commit into from
Jan 19, 2024

Conversation

ronenh
Copy link
Contributor

@ronenh ronenh commented Jan 19, 2024

I originally wrote the logic that reloads the model from the persisted manifest if the serialized model version is different from the current in bdb.LoadModel, which is called to load the model at startup, but that code path can't write the new model back to the store because it's running in the context of a read-only transaction.

This PR moves the logic to a new db migration that only runs once and is able to write the new model back to the store.

@ronenh ronenh requested a review from gertd January 19, 2024 17:27
@ronenh ronenh merged commit a27307e into azm-check Jan 19, 2024
1 check passed
@ronenh ronenh deleted the model-migration branch January 19, 2024 19:36
@ronenh ronenh restored the model-migration branch January 19, 2024 22:38
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.

2 participants