Open woytam opened 4 years ago
Ow that's interesting, let me dig into it and give you some pointers on how to test this if you'd like to make the PR. Or you can already make the PR with just the test for this and I'll give you the pointers on how to proceed.
Hi, I have found out, that
Pool\Flexible
withTTL
closes processes under the count ofOptions:MIN_SIZE
. Example:Pool starts with 1 worker, but after 10 seconds (
Options::TTL
) of inactivity, worker is closed and there is 0 workers at that time. Problem can be in functionttl
, but I do not understand the logic of this function to make PR.