Parallel Execution in rails thin server

Hi
I have deployed my application in thin server.I am facing issue with multi thread instances.For instance,I am executing some Bulk Operation localhost:3000/bulk which is currently running.If I am opening same page in another browser.It is not loading until that bulk execution completed.How to solve this issue

What server are you running on? Is it a webrick? You have to use multi threaded server like puma. It will allow you to process multiple requests in parallel. However I would advice to move long running tasks to background using sidekiq or similiar tool.

1 Like

Yes Thanks.I was using puma and sidekiq only.Problem it was not running concurrent process.If I am running bulk request in 5 device s.It is only executing 3 devices.Other 2 devices were not executed.For instance I have set Completed,In progress, Initiated status for each selected group execution and each group has around 500 parameters.If i am running one group for 3 devices which would move from initiated state to in progress status as soon as execution started.Only 2 devices in progress Status and 3rd device is always initiated status(Not executing).3rd device selected group parameters were updating in 2nd device results.I don’t know why.But thin server working properly.Do I need to set anything in PUMA for concurrent request? We have phusion passenger in Dev environment?There also same issue.