A foreground process is already running. Only one foreground process can run at a time

Hello. I’m running unattended robot and I have multiple foreground process defined.
I can call these processes by REST API ,execute screen scraping and return JSON to the caller.

But the problem is concurrent call. When one foreground process is called and running, if the other process gets called, it’ll get failed and say “A foreground process is already running. Only one foreground process can run at a time.”

Is there a way for orchestrator to manage this kind of processes and handle the foreground processes sequentially without throwing error?

Thanks in advance!