message_ix icon indicating copy to clipboard operation
message_ix copied to clipboard

Cleaning of `cplex.opt` causes asyncronous issues with multiple runs

Open gidden opened this issue 3 years ago • 2 comments

I have experienced silent errors when performing multiple message_ix.Scenario.solve()s simultaneously on the same computer. As best I can tell, these occur when I employ the solve_options kwarg, which forces a writing to disk of the cplex.opt file.

Upon completion, I believe this file is then garbage collected. However, other solves occuring simultaneously expect for this file to be present.

As a short solution, I would suggest we simply do not erase the file. A better solution would employ asyncronous file manipulation.

gidden avatar Mar 31 '22 15:03 gidden

As I look through the code base, it seems like this was a known issue at the time, specifically citing this comment.

gidden avatar Mar 31 '22 15:03 gidden

This may also be a duplicate of #250.

khaeru avatar Apr 28 '22 16:04 khaeru

closed via #657

gidden avatar Nov 07 '22 15:11 gidden