ember-sync icon indicating copy to clipboard operation
ember-sync copied to clipboard

EmberSync.Queue should run when a job is enqueued, rather than on an poll-interval

Open tute opened this issue 11 years ago • 1 comments

Calling processNextJob when there's no jobs pending seems to make little sense. Queue could run on each enqueue, and start the retry intervals only on job error. If app goes offline for hours though, it may make sense to offer an API to retry it manually, or on a window.addEventListener('online', callback) event.

tute avatar Jul 07 '14 19:07 tute

Makes total sense. If no one does it, I'll do it myself likely in a month from now.

kurko avatar Jul 08 '14 02:07 kurko