Open itsToggle opened 5 months ago
Hi @itsToggle. Just a couple of questions:
PyMotorCAD already has some functionality which might help. You can ask it to connect to existing/start new instance and lock it to other threads reuse_parallel_instances
and MotorCAD.set_free()
. Are these any use?
https://motorcad.docs.pyansys.com/version/stable/methods/MotorCAD_object.html
https://motorcad.docs.pyansys.com/version/stable/methods/_autosummary_General/ansys.motorcad.core.motorcad_methods.MotorCAD.set_free.html#set-free
Is this for a single local machine or are you planning to run this on multiple remote machines?
📝 Description of the feature
I'm building a simulation queue management for MotorCAD, where multiple MotorCAD instances are running in parallel. If a new job comes in, an instance is picked and the jobs simulation commands are executed, starting with "upload_mot_file(...)". This command will check out a licence. After the simulation is done, I want the MotorCAD instance to go back to ideling without taking up any licences. This is currently not possible without having to quit and restart the instance, which is taking up unnecessary time.
There should be a "return_licence" method.
💡 Steps for implementing the feature
No response
🔗 Useful links and references
No response