diff options
| author | snd <snd@odoo.com> | 2020-02-10 13:05:39 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-02-10 17:38:28 +0000 |
| commit | f7eb653e7a4f801ad038ba7658913e13aeff6ee7 (patch) | |
| tree | cade10f901e67747ccad04f425bea660c620be84 /addons/web/static/src/js | |
| parent | 7d254d3e3637461665a0a356f3b701bcaf39bbcf (diff) | |
[FIX] google_calendar: synchronization cron timeout
In a database with many users / events to synchronize, the cron
`ir_cron_sync_all_cals` may time out. Consequently, even if a `commit`
is performed for each user, some users are never synchronized.
In this commit, we first sort the users by last synchronization date,
meaning that all users will ultimately be synchronized, even if the cron
times out. On top of that, we introduce the context key
`last_sync_hours` to prevent the synchronization in case the cron is
restarted after timeout.
opw-2158372
closes odoo/odoo#45032
X-original-commit: 2f21def63c61324e2286dbee6abead091171a041
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Co-authored-by: Nicolas Martinelli <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
