Skip to content

Commit

Permalink
Use v-threads for AbstractFutureStore
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Nov 26, 2024
1 parent 06e7a7f commit 1d42c83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import java.util.concurrent.TimeoutException
import groovy.transform.CompileStatic
import groovy.util.logging.Slf4j
import io.micronaut.context.annotation.Value
import io.micronaut.scheduling.TaskExecutors
import io.seqera.wave.encoder.EncodingStrategy
import jakarta.inject.Inject
import jakarta.inject.Named
Expand Down Expand Up @@ -55,7 +56,7 @@ abstract class AbstractFutureStore<V> implements FutureStore<String,V> {
private volatile Duration pollInterval

@Inject
@Named('future-store-executor')
@Named(TaskExecutors.BLOCKING)
private ExecutorService executor

AbstractFutureStore(FutureHash<String> store, EncodingStrategy<V> encodingStrategy) {
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ micronaut:
stream-executor:
type: FIXED
number-of-threads: 16
future-store-executor:
type : FIXED
number-of-threads : 32
netty:
event-loops:
stream-pool:
Expand Down

0 comments on commit 1d42c83

Please sign in to comment.