Mailspring/spec/stores
Ben Gotow 47a8823242 fix(queue): Delay retries up to 30s when tasks request a retry
Summary:
This is a critical patch that fixes two problems with the task queue:

1. Tasks in Status: Retry are retried the next time processQueue is run,
   which could be pretty much immediately. Certain scenarios lead to tasks
   running in a hard loop forever.

2. Returning Task.Status.Retry set the retry flags on the task but did not
   schedule the queue to be processed again. So if only a single item in the
   queue was present, it might never be retried again until the user performed
   another action.

Test Plan: Where did the specs for TaskQueue go? There aren't many... need to write more.

Reviewers: evan

Reviewed By: evan

Differential Revision: https://phab.nylas.com/D2762
2016-03-18 13:25:30 -07:00
..
account-store-spec.coffee
category-store-spec.es6
contact-store-spec.coffee
database-setup-query-builder-spec.coffee
database-store-spec.coffee
database-transaction-spec.coffee
draft-store-proxy-spec.coffee fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
draft-store-spec.coffee feat(dock-icon): Drop files to attach them to new msg 2016-03-17 13:14:55 -07:00
file-download-store-spec.coffee
file-upload-store-spec.coffee feat(dock-icon): Drop files to attach them to new msg 2016-03-17 13:14:55 -07:00
focused-contacts-store-spec.coffee
focused-content-store-spec.coffee
focused-perspective-store-spec.coffee
message-store-spec.coffee
nylas-sync-status-store-spec.es6
task-queue-spec.coffee fix(queue): Delay retries up to 30s when tasks request a retry 2016-03-18 13:25:30 -07:00
unread-badge-store-spec.coffee