Skip to content

Commit 823d9d7

Browse files
committed
fix: next level concurrency
1 parent 63ac850 commit 823d9d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/main/java/io/cloudquery/scheduler/Scheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private void resolveTables(List<Table> tables, Resource parent, int concurrency)
3030
if (tables == null || tables.isEmpty()) {
3131
return;
3232
}
33-
ExecutorService executor = Executors.newFixedThreadPool(Math.min(tables.size(), concurrency));
33+
ExecutorService executor = Executors.newFixedThreadPool(Math.max(tables.size(), concurrency));
3434
for (Table table : tables) {
3535
final int nextLevelConcurrency = Math.max(1, concurrency / 2);
3636
executor.submit(

0 commit comments

Comments
 (0)