Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to virtual threads - phase 2 #742

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class PullMetricsRequestsFilter implements HttpServerFilter {
private RouteHandler routeHelper

@Inject
@Named(TaskExecutors.IO)
@Named(TaskExecutors.BLOCKING)
private ExecutorService executor

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class BuildStateStoreImpl extends AbstractStateStore<BuildEntry> implements Buil

private ExecutorService ioExecutor

BuildStateStoreImpl(StateProvider<String, String> provider, BuildConfig buildConfig, @Named(TaskExecutors.IO) ExecutorService ioExecutor) {
BuildStateStoreImpl(StateProvider<String, String> provider, BuildConfig buildConfig, @Named(TaskExecutors.BLOCKING) ExecutorService ioExecutor) {
super(provider, new MoshiEncodeStrategy<BuildEntry>() {})
this.buildConfig = buildConfig
this.ioExecutor = ioExecutor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class ContainerBuildServiceImpl implements ContainerBuildService, JobHandler<Bui
private BuildStateStore buildStore

@Inject
@Named(TaskExecutors.IO)
@Named(TaskExecutors.BLOCKING)
private ExecutorService executor

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ class BuildLogServiceImpl implements BuildLogService {
private String condaLockPrefix

@Inject
@Named(TaskExecutors.IO)
private ExecutorService ioExecutor
@Named(TaskExecutors.BLOCKING)
private volatile ExecutorService ioExecutor

@PostConstruct
private void init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ContainerMirrorServiceImpl implements ContainerMirrorService, JobHandler<M
private JobService jobService

@Inject
@Named(TaskExecutors.IO)
@Named(TaskExecutors.BLOCKING)
private ExecutorService ioExecutor

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ContainerScanServiceImpl implements ContainerScanService, JobHandler<ScanE
private ScanConfig config

@Inject
@Named(TaskExecutors.IO)
@Named(TaskExecutors.BLOCKING)
private ExecutorService executor

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class BuildStoreLocalTest extends Specification {
private BuildConfig buildConfig

@Inject
@Named(TaskExecutors.IO)
@Named(TaskExecutors.BLOCKING)
ExecutorService ioExecutor

BuildResult zeroResult = BuildResult.create('0')
Expand Down
Loading