-
Notifications
You must be signed in to change notification settings - Fork 209
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
Ensure delete_expired
uses writable database.
#358
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you will need to update the tests as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add / update tests to make the CI green.
@@ -86,7 +89,7 @@ def get_all_expired(self, expires): | |||
|
|||
def delete_expired(self, expires): | |||
"""Delete all expired results.""" | |||
with transaction.atomic(using=self.db): | |||
with transaction.atomic(using=self.database_for_write()): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also resolve the merge conflict please?
@jacklinke any joy on this one? I'm running into the same issue that you are |
Just as a heads-up, #427 also needs a testcase with a read-only connection (See my comment for a suggested approach: #427 (comment)) |
Update
delete_expired
method of ResultManager to use writable database.Resolves #357