-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thread count increased after usage of ScheduledDataLoaderRegistry #173
Comments
The You can specify your own executor when you build the If you use the default you must call
In many cases its better to provide your own "shared"
No not really since we cant know when you are finished work... well not truly finished. This is responsibility the using code must take on. You need to call |
Yes, which is what I tried it yesterday of closing the scheduledExecutorService but yet was leading to increase in thread count. I wanted to use the default executor only -
And now, I'm invoking from my dataloaders function - |
Describe the bug
We've merged the latest version after validating the fix was deployed - #135 yet the thread count has started to increase significantly. The threads aren't getting closed after the completion of the task unlike DataLoaderRegistry.
We've initialized ScheduledDataLoaderRegistry in the following way in the ServiceContextImpl -
The issue is that the threads are not getting closed after the execution of the scheduledDataLoaderRegistry and when the response is ready and sent back.
In this case, shouldn't the logic be handled in a way when there is nothing to be dispatched and all data loaders have completed their work, we should close the thread?
The text was updated successfully, but these errors were encountered: