You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there are more calls than workers submitted in the moment before the cleanup runs, it seems that the freshly created threads (to meet the increase in demand) are immediately cleaned up.
This shouldn't happen as I'm checking for thread.ident (to show that thread was ever started) as well as not thread.isAlive() (to show that thread is now stopped).
Need to dig into it.
The text was updated successfully, but these errors were encountered:
Since isAlive relies on __started being set, there is a race where ident can be set and isAlive returns false during the new threads bootstrapping process. This means that checking ident and then !isAlive can mark the worker as dead during the bootstrap process.
If there are more calls than workers submitted in the moment before the cleanup runs, it seems that the freshly created threads (to meet the increase in demand) are immediately cleaned up.
This shouldn't happen as I'm checking for
thread.ident
(to show that thread was ever started) as well asnot thread.isAlive()
(to show that thread is now stopped).Need to dig into it.
The text was updated successfully, but these errors were encountered: