Closed guest6379 closed 1 year ago
Hey @guest6379, if you could provide the code you are using and presents this exception that would be great, to find the root cause.
The channel in p.tasks
gets closed only when the pool is stopped by calling any of these methods: Stop
, StopAndWait
or StopAndWaitFor
. The error you are seeing may indicate some tasks are being submitted after the pool is stopped. The general recommendation is to stop submitting tasks to the pool before stopping the worker pool, to avoid these errors.
Closing due to inactivity
I'm not quite sure when this issue will happen, but it throws exception as below: