-
Notifications
You must be signed in to change notification settings - Fork 645
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
how to take down ray and put up again in local mode #7249
Comments
Hi @SiRumCz, thanks for posting this issue. I guess there might be an issue with multiple Ray initialization in Modin codebase. We would have to look into this deeper. Meanwhile, can you explicitly put |
@YarShev Thanks for your response. Yes, I have tried that method, and unfortunately I got: |
@SiRumCz, could you try to execute |
Signed-off-by: Igoshev, Iaroslav <iaroslav.igoshev@intel.com>
@SiRumCz, I opened #7280, which adds import modin.pandas as pd
from modin.utils import reload_modin
import ray
ray.init(num_cpus=16) # can be commented out, works
df = pd.read_csv("example.csv")
df = df.abs()
print(df)
ray.shutdown()
reload_modin()
ray.init(num_cpus=16) # can be commented out, works
df = pd.read_csv("example.csv")
df = df.abs()
print(df) |
thanks, I ended up using a Process to wrap my task into a new process, ray will be taken down when process ends. But I am happy that there will be a feature for this, cheers :-) |
My program has memory risk, and part of it seems to come from memory leak (idling ray workers holding a big chunk of memory). I have a for loop to independently run chunks of csv file on a series of tasks, I wish to kill ray after each iteration to release memory, and let Modin to put it up again with fresh ray workers. However, my code is the following:
however, I got below error:
The text was updated successfully, but these errors were encountered: