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

[Asyncio] Allow Async_API to init when loop is running #5323

Merged
merged 5 commits into from
Jul 31, 2019

Conversation

simon-mo
Copy link
Contributor

Two changes were made:

  • Make sure ray cluster is initialized before calling init()
  • If the loop is already running _async_init is scheduled to run in current loop.

Linter

  • I've run scripts/format.sh to lint the changes in this PR.

@simon-mo simon-mo requested review from suquark and pcmoritz July 30, 2019 21:08
@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/15809/
Test FAILed.

Copy link
Contributor

@pcmoritz pcmoritz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this! In the future we should get rid of the async init and just call it automatically when the first async operation is used.

@pcmoritz pcmoritz merged commit d762379 into ray-project:master Jul 31, 2019
edoakes pushed a commit to edoakes/ray that referenced this pull request Aug 9, 2019
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

Successfully merging this pull request may close these issues.

3 participants