Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tute opened this issue Jul 7, 2014 · 1 comment

Comments

@tute
Copy link
Contributor

tute commented Jul 7, 2014

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.

@kurko
Copy link
Owner

kurko commented Jul 8, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants