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

Ignore multiple calls to set_runner_ray with kwarg noop_if_initialized #728

Merged
merged 1 commit into from Mar 22, 2023

Conversation

jaychia
Copy link
Contributor

@jaychia jaychia commented Mar 22, 2023

  • Currently, if users call set_runner_ray(...) more than once per process, they will incur a RuntimeError. The intention here is to be very explicit that this behavior is not encouraged, as setting the runner more than once can potentially corrupt the state of Daft's caching.
  • This PR adds a kwarg noop_if_initialized. If set to True, subsequent calls to set_runner_ray are ignored and have no effect. We log a warning when this happens.

@jaychia jaychia merged commit beebfe7 into main Mar 22, 2023
6 checks passed
@jaychia jaychia deleted the jay/allow-multiple-ray-init branch March 22, 2023 03:45
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.

None yet

1 participant