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

Re-submit job to queue again #31

Closed
reidlai opened this issue Jan 30, 2015 · 1 comment
Closed

Re-submit job to queue again #31

reidlai opened this issue Jan 30, 2015 · 1 comment

Comments

@reidlai
Copy link

reidlai commented Jan 30, 2015

Dear All,

I have an object which has a refresh method to create queue object and use defer method to submit jobs. I also implement awaitAll to emit an event. Everything works fine in my app first run. But when I try to rerun my refresh method, I found that all jobs did submit through defer (proved by logging each callback). But I cannot see awaitAll being called. How can I reset the queue to make awaitAll works when I re-submit jobs? Thanks for your advice.

@mbostock
Copy link
Member

There is no way to reset the queue (under the current API). You must discard your existing queue and create a new one.

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

No branches or pull requests

2 participants