-
Notifications
You must be signed in to change notification settings - Fork 713
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
Prevent transient errors or network interruptions from interfering with syncs #11508
Prevent transient errors or network interruptions from interfering with syncs #11508
Conversation
Build Artifacts
|
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.
All makes sense to me. Nothing blocking.
from kolibri.plugins.hooks import register_hook | ||
|
||
|
||
@register_hook | ||
class SyncQueueStatusHook(FacilityDataSyncHook): | ||
@retry_on_db_lock |
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.
Just to check my understanding - these hooks are executed outside the transaction for syncs right?
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.
Yes that was the change we made a while back (and then re-did it)
@@ -59,19 +57,3 @@ def plugin_data(self): | |||
return { | |||
"practice_quizzes_exist": practice_quizzes_exist, | |||
} | |||
|
|||
|
|||
@register_hook |
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.
This is just deferring all cleanup to the garbage collection, right?
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.
Yes, which I made the PR description say this depends on that PR
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.
After a QA session with Blaine with a variety of scenarios, we will merge this. QA team will test as soon as we tag our next beta
e2bf250
into
learningequality:release-v0.16.x
Summary
database is locked
error occursReferences
Depends on: #11101
Resolves: #11485
Resolves: #11469
Reviewer guidance
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)