mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 18:47:51 +08:00
7b63912955
Summary: Previously, we attempted to immeditely retry syncback tasks when a RetryableError was encountered. However, if the error was an IMAPConnection error, we would keep retrying with a broken connection, which would keep failing. The correct way to retry is to wait for the next sync loop, since at the beginning of each loop we ensure that we are correctly connected to imap. To achieve this this commit simply marks a failed task as NEW if it encoutners a RetryableError and we haven't retried too many times. To keep track of the number of retries, we save a new field in the `props` field of the request. Test Plan: manual Reviewers: evan, halla, mark, spang Reviewed By: spang Subscribers: khamidou Differential Revision: https://phab.nylas.com/D3831 |
||
---|---|---|
.. | ||
isomorphic-core | ||
local-private | ||
local-sync |