sync-manager no longer queues syncs. - #7532
Conversation
a106978 to
9cd898c
Compare
bendk
left a comment
There was a problem hiding this comment.
I could see there being a use-case for something like queuing up a sync: I make a change to some engine and want to make sure other clients see it ASAP. In that case, if there's a sync going, I still might want to queue another one since that the sync for my engine might have already happened.
However, that's not needed right now and I don't think SyncManager::sync() is the method we would want to use for that anyways, so this change seems great to me.
yeah, but this does kinda sound app specific, so having that in the Kotlin WorkManager makes some sense - eg, things like cancellation etc and other platform specific considerations are possible. Ideal would be to allow multiple syncs to run concurrently, locking each engine, not the entire sync? That's likely somewhat possible, but not at all trivial. |
There's no need or use-case for syncs queuing up. Any "immediate" requests are time-sensitive, and the chance of a conflict is small.
9cd898c to
988aec1
Compare
There's no need or use-case for syncs queuing up. Any "immediate" requests are time-sensitive, and the chance of a conflict is small.
Shouldn't break consumers. Towards what @segunfamisa and I have been chatting about. cc @jonalmeida, and @bendk and @gruberb re the async discussions (sync-manager has never had a coroutine wrapper iiuc, so has always been blocking for android (ie, not actually "async", which is unusual and was a TIL 😅). Maybe relevant to the async modeling?)
See also https://bugzilla.mozilla.org/show_bug.cgi?id=2061666
Pull Request checklist
[ci full]to the PR title.