-
Notifications
You must be signed in to change notification settings - Fork 716
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
Sync resumption for SoUD syncs and cleanup handling #8183
Sync resumption for SoUD syncs and cleanup handling #8183
Conversation
20b6698
to
f8ffc62
Compare
…tween syncs Fix progress handler Keep sync session alive Remove venv accidentally added during pre-commit fixes
73bc252
to
bebaa57
Compare
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.
I have tested it and hadn't found any problem with these changes.
Only the warning messages appearing multiple times on a not SoUD server that has been used to sync several SoUD:
INFO Kolibri instance 'd34fa0e29c06817d732e4f7b81f3e2aa' joined zeroconf network; device info: {'application': 'kolibri', 'kolibri_version': '0.15.0a5.dev0+git.18.g94c233af', 'instance_id': 'd34fa0e29c06817d732e4f7b81f3e2aa', 'device_name': 'jose-xps', 'operating_system': 'Linux', 'subset_of_users_device': False}
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do automated SoUD syncing.
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
WARNING Only Subsets of Users Devices can do this
INFO Kolibri running on: http://172.17.0.1:10000/
Thanks @jredrejo! That does seem to be a small regression, which I'll look into |
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.
Took a peek at one specific piece, per a request, and added a comment there.
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.
Code read through makes sense to me!
self.name, | ||
server=self.server, | ||
address=self.ip, | ||
port=self.port or DEFAULT_PORT, |
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.
When would we not have the port information here? (If this is just copy pasted from the previous implementation, feel free to ignore).
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 does originate from the existing code, but I think you're right that we really don't need it
Hi @bjester, today I had a look at this build on Windows, Ubuntu and Android and noticed that the auto sync is not functioning at all for the learner-only devices that I've setup on both Windows and Android using Ubuntu as a server. |
Thanks @pcenov, I'm aware of that and have been debugging that issue, but the cause is still unclear |
Tested again today on the latest Windows 10, Ubuntu and Android builds and can confirm that the sync functions correctly now. |
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.
Nice - the cleanup of SoUD syncing jobs on unregistering is a nice addition too!
Force merging as linting issue is resolved in #8513 |
Summary
morango>=0.6.5
sync
command to inherit new base class and to output theSyncSession
ID for resumingresumesync
command that inherits new base class and accepts a--id
parameter for aSyncSession
to resumeZeroconf.update_interfaces
References
Resolves: #8019
Reviewer guidance
Situations that touch areas affected by this PR:
Scenario: Full facility
Scenario: Learner-only
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)