Skip to content

Commit

Permalink
Legacy treadpools (no virtual thread)
Browse files Browse the repository at this point in the history
  • Loading branch information
Goulven.Furet authored and Goulven.Furet committed Dec 7, 2023
1 parent db40e2e commit 0bdcd26
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,9 @@ public CsvDatasourceFetchingService(final DataFragmentCompletionService completi
this.completionService = completionService;
this.fetcherProperties = fetcherProperties;
// The CSV executor can have at most the fetcher max indexation tasks threads
executor = Executors.newFixedThreadPool(fetcherProperties.getConcurrentFetcherTask(), Thread.ofVirtual().factory());

// TODO : see with @Nico
// executor = Executors.newFixedThreadPool(fetcherProperties.getConcurrentFetcherTask(), Thread.ofVirtual().factory());
executor = Executors.newFixedThreadPool(fetcherProperties.getConcurrentFetcherTask());

}

Expand Down

0 comments on commit 0bdcd26

Please sign in to comment.