-
I have a script that runs pymapdl repeatedly. Sometimes one of the simulations causes an error. I try to catch that and make sure to close the mapdl-task.
Often this is enough, but sometimes an MAPDL-task keeps running (I still don't know what exactly is responsibl for this). This prevents the next simulation to start ("unable to remove lock-file"). Is there a way to force a shutdown of all running MAPDL-tasks via python? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi @natter1 Are you using windows or linux? I'm aware that on Windows it might leave some child processes still running. |
Beta Was this translation helpful? Give feedback.
-
Hi @natter1 Can I ask why your script is existing/starting MAPDL repeatedly? I thought that one of the big benefits of MAPDL as a Service is that we can just /clear and send commands for next model. Unless you need to change some command line options (number of cpu cores etc)? |
Beta Was this translation helpful? Give feedback.
Hi @natter1
Are you using windows or linux? I'm aware that on Windows it might leave some child processes still running.