We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63ac850 commit 823d9d7Copy full SHA for 823d9d7
1 file changed
lib/src/main/java/io/cloudquery/scheduler/Scheduler.java
@@ -30,7 +30,7 @@ private void resolveTables(List<Table> tables, Resource parent, int concurrency)
30
if (tables == null || tables.isEmpty()) {
31
return;
32
}
33
- ExecutorService executor = Executors.newFixedThreadPool(Math.min(tables.size(), concurrency));
+ ExecutorService executor = Executors.newFixedThreadPool(Math.max(tables.size(), concurrency));
34
for (Table table : tables) {
35
final int nextLevelConcurrency = Math.max(1, concurrency / 2);
36
executor.submit(
0 commit comments