diff --git a/yarn-project/aztec/terraform/node/main.tf b/yarn-project/aztec/terraform/node/main.tf index 4b34b91b9fd..0be01d9de19 100644 --- a/yarn-project/aztec/terraform/node/main.tf +++ b/yarn-project/aztec/terraform/node/main.tf @@ -329,7 +329,11 @@ resource "aws_ecs_task_definition" "aztec-node" { value = tostring(var.P2P_TX_POOL_KEEP_PROVEN_FOR) }, { - name = "PROVER_AGENTS" + name = "PROVER_AGENT_ENABLED" + value = "false" + }, + { + name = "PROVER_AGENT_CONCURRENCY", value = "0" }, { diff --git a/yarn-project/aztec/terraform/prover/main.tf b/yarn-project/aztec/terraform/prover/main.tf index 8068de53442..a0bb4bb8c22 100644 --- a/yarn-project/aztec/terraform/prover/main.tf +++ b/yarn-project/aztec/terraform/prover/main.tf @@ -262,7 +262,11 @@ resource "aws_ecs_task_definition" "aztec-proving-agent" { "value": "http://${var.DEPLOY_TAG}-aztec-node-${count.index + 1}.local/${var.DEPLOY_TAG}/aztec-node-${count.index + 1}/${var.API_KEY}" }, { - "name": "PROVER_AGENTS", + "name": "PROVER_AGENT_ENABLED", + "value": "true" + }, + { + "name": "PROVER_AGENT_CONCURRENCY", "value": "1" }, { diff --git a/yarn-project/prover-client/src/prover-agent/prover-agent.ts b/yarn-project/prover-client/src/prover-agent/prover-agent.ts index 47a769f10c7..7ca2b0ba99a 100644 --- a/yarn-project/prover-client/src/prover-agent/prover-agent.ts +++ b/yarn-project/prover-client/src/prover-agent/prover-agent.ts @@ -68,10 +68,13 @@ export class ProverAgent { const now = process.hrtime.bigint(); if (now - lastPrint >= PRINT_THRESHOLD_NS) { - const jobs = Array.from(this.inFlightPromises.values()) - .map(job => `id=${job.id},type=${ProvingRequestType[job.type]}`) - .join(' '); - this.log.info(`Agent is running with ${this.inFlightPromises.size} in-flight jobs: ${jobs}`); + // only log if we're actually doing work + if (this.inFlightPromises.size > 0) { + const jobs = Array.from(this.inFlightPromises.values()) + .map(job => `id=${job.id},type=${ProvingRequestType[job.type]}`) + .join(' '); + this.log.info(`Agent is running with ${this.inFlightPromises.size} in-flight jobs: ${jobs}`); + } lastPrint = now; }