diff --git a/proto/depot/cloud/v3/machine.proto b/proto/depot/cloud/v3/machine.proto index 8a0cd64..47fee38 100644 --- a/proto/depot/cloud/v3/machine.proto +++ b/proto/depot/cloud/v3/machine.proto @@ -77,6 +77,7 @@ message RegisterMachineResponse { // Disable fstrim on shutdown optional bool disable_fstrim = 14; + optional int32 resolver_concurrency = 15; } // Specifies sending buildkit profiling data to a remote endpoint. diff --git a/src/gen/ts/depot/cloud/v3/machine_pb.ts b/src/gen/ts/depot/cloud/v3/machine_pb.ts index 96151e8..4e93c4c 100644 --- a/src/gen/ts/depot/cloud/v3/machine_pb.ts +++ b/src/gen/ts/depot/cloud/v3/machine_pb.ts @@ -465,6 +465,11 @@ export class RegisterMachineResponse_BuildKitTask extends Message) { super() proto3.util.initPartial(data, this) @@ -486,6 +491,7 @@ export class RegisterMachineResponse_BuildKitTask extends Message): RegisterMachineResponse_BuildKitTask { diff --git a/src/tasks/buildkit.ts b/src/tasks/buildkit.ts index e2bee7e..d5f0178 100644 --- a/src/tasks/buildkit.ts +++ b/src/tasks/buildkit.ts @@ -120,6 +120,10 @@ keepBytes = ${cacheSizeBytes} env.BUILDKIT_SCHEDULER_DEBUG = '1' } + if (task.resolverConcurrency) { + env.DEPOT_RESOLVER_CONCURRENCY = task.resolverConcurrency.toString() + } + async function runBuildKit() { try { await execa('/usr/bin/buildkitd', [], {stdio: 'inherit', signal, env})