Solved

Get Number of Concurrent FMEProcesses and FMEWorkerProcesses in Python

  • 24 March 2016
  • 3 replies
  • 2 views

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

icon

Best answer by david_r 24 March 2016, 14:49

View original

3 replies

Userlevel 4

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

Userlevel 4
Badge +25

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