Skip to content

Commit 31524fa

Browse files
authored
Fix a bug for PollOnlyIfExecutorHasCapacity flag about pool size (#666)
1 parent e7c6947 commit 31524fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/uber/cadence/internal/worker/PollTaskExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void process(T task) {
8383

8484
@Override
8585
public boolean hasCapacity() {
86-
return taskExecutor.getActiveCount() < taskExecutor.getPoolSize();
86+
return taskExecutor.getActiveCount() < taskExecutor.getMaximumPoolSize();
8787
}
8888

8989
@Override

0 commit comments

Comments
 (0)