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

How to wait for the finish of subprocess.run (["./executer"]) when lunched by SCOOP? #84

Open
esiwgnahz opened this issue Nov 7, 2019 · 1 comment

Comments

@esiwgnahz
Copy link

I am trying to using SCOOP and DEAP for the optimization of a FEA model. In python the model is run by subprocess.run (["./executer"]) . Using python's multiprocess.pool way, I can successfully run the external executor using subprocess.run. But when lunched by SCOOP, the subprocess.run soon skipped without waiting for the modeling result though I can see the external executor was running on the background. There is no error information while running.
Please tell me how to solve this? Thank you!

@pphilippos
Copy link

Hello, I think I had a similar problem with new scoop map calls not been waited for their result. But it was my mistake because I didn't make explicit that I wanted the results (since it is from an external application in my case, a subprocess in yours). One way to do this is to cast the map generator to a list, i.e. list(..map(...)) (I forgot where I first read this online). But I am not sure this is the exaact problem you are having.

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

2 participants