Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Setup syncAllAccount after login

Fahim Salam Chowdhury requested to merge 1124-Delay_req_sync_after_signin into main

Description

Right after login, the sync authorities require some time to be set up (network blocker mainly). So sync can't be performed right away. So users have to wait until the next periodic sync (15-20 mins delay after login), so the syncs are performed & their contacts, calendars, tasks, etc accounts get set up. To minimize this wait time, we want to retry over & over again for a specific time limit. As a result, the user might have to wait for max 2 mins & on average 2-10 secs to get his/her all account set up.

Screenshots

Technical details

Need to use OneTimeWorker instead of PeriodicWorker because PeridicWorker requires >= 15 min delay between two jobs.

Tests

Issues

10 Commandments of code reviews

👪 https://gitlab.e.foundation/internal/wiki/-/wikis/development/code-review

Merge request reports

Loading