I have a python script that I would like to run in UiPath using the Python activies. Part of my Python script involes using multi-processing to go through and do some data-processing in a panda dataframe. However, when I set the system argument to:
import multiprocessing as mp
sys.argv = [r’C:\Users\path_to_script\script.py’]
And when I tried to run multi-processing in the following code
with mp.Pool() as pool:
result_map = pool.starmap(data_process, arguments)
I saw that there are 8 Python.exe running in the backends. However, each Python.exe is using 0% cpu.
Has anyone ever ran Python script using multiprocessing in UiPath and got it to work ?
Also, just a side note, I was able to run my python script with multiprocessing just fine when it is no embedded. I was also able to run the script and encountered no error in the UiPath workflow when I called the same script without multiprocessing from UiPath. But I am not sure why I can’t call the script with multiprocessing in UiPath.