Remote execution concurrency

Trying to understand “concurrency” when using the remove execution plugin.

There is a “Workers Pool Size” setting under Administer > RemoteExecution that defaults to 5. Does this mean Foreman/foreman-tasks will connect to 5 hosts at a time and run the task if I had for example selected 50 hosts, similar to the Ansible “forks” parameter?

If not, what does this setting “remote_execution_pool_size” actually do and are there any “tuning” recommendations.

Foreman and Proxy versions:

Foreman 1.21.3

Foreman and Proxy plugin versions:

Remote execution plugin version 1.7

It just defines how many worker threads is going to be ran in your application. It says how many tasks can run concurrently.
Tuning of the parameter depends on how much of tasks you are going to run and of course available resources for running them, but until you find your tasks being in the queue for too long (meaning you are running too much of tasks), I would roll with the default.