Skip to main content
Solved

Get Number of Concurrent FMEProcesses and FMEWorkerProcesses in Python


Hello!

One could access the maximum FME Processes and Workers in Python like this:

MaximumProcesses = fmeobjects.FMELicenseManager.getMaxFMEProcesses() or the same with workers.

How can I get the acual used number of Processes and Workers?

Thanks a lot! Regards Jacob

Best answer by david_r

Hi

You can use the subprocess module in Python and count the running instances of "fme.exe". Here's some info to get you started.

David

View original
Did this help you find an answer to your question?

3 replies

david_r
Evangelist
  • Best Answer
  • March 24, 2016

Hi

You can use the subprocess module in Python and count the running instances of "fme.exe". Here's some info to get you started.

David


mark2atsafe
Safer
Forum|alt.badge.img+43
  • Safer
  • March 24, 2016

If it's after the translation you are asking for, could you try parsing that information out of the log file?


Thanks a lot!

I want to run a WorkspaceRunner and assign the "Maximum concurrent running instances"-Parameter dynamically at runtime by first checking the used instances (eg. 2) and depending on time and maybe a parameter (eg. one instance should always be accessible so 8-1-2 = 5 -> 5 instances could be used by the subprocess).


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings