-
Notifications
You must be signed in to change notification settings - Fork 68
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
jc.getWork always returned: [] #234
Comments
I found I missed |
@tilumi Glad to figured it out. You may already know this, but |
Yeah, at first I use |
Where would the throw happen? It's not a fatal error, and there's nothing to be done to handle it. There simply isn't any work available before the server is started. The current behavior is by design, allowing a server to be gracefully shutdown and restarted (e.g. to perform maintenance) without all of the (potentially hundreds of) workers also needing to be restarted. |
OK, throwing exceptions may be inappropriate, but I think a mechanism to acknowledge caller that the server is not started is better, since I stuck for hours to figure out why the work is not got. |
I have following small sample for testing
jc.getWork
.It is wired that I always get empty result fromgetWork
. I wonder is there any problem in this sample?The text was updated successfully, but these errors were encountered: