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

Let scheduler GRPC methods return before calling schedule #375

Open
robertnishihara opened this issue Aug 14, 2016 · 0 comments
Open

Let scheduler GRPC methods return before calling schedule #375

robertnishihara opened this issue Aug 14, 2016 · 0 comments

Comments

@robertnishihara
Copy link
Collaborator

The first time a worker calls "ReadyForNewTask", all of the remote functions will be added to a queue to be exported to the worker. Then schedule is called, which tries to export all of the remote functions to the worker. If the size of the worker's message queue is smaller than the number of exported remote functions, then this will freeze, and ReadyForNewTask will never return. The solution is to allow schedule to be called only after ReadyForNewTask has returned.

This problem can be easily exposed by changing the default size of the message queue in ipc.h to a small number like 5 and then running the tests.

pcmoritz pushed a commit to pcmoritz/ray that referenced this issue Dec 18, 2017
* Expand API documentation and convert tutorial to rst.

* Fix formatting error in tutorial.

* Address William's comments.

* Address Stephanie's comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant