Skip to content

Commit b72a92f

Browse files
author
AztecBot
committed
Merge branch 'next' into merge-train/barretenberg
2 parents ddca6dc + 7274ae2 commit b72a92f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

yarn-project/bb-prover/src/bb/execute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ export async function generateAvmProof(
435435
return {
436436
status: BB_RESULT.FAILURE,
437437
reason: `Failed to generate proof. AVM proof for TX hash ${input.hints.tx.hash}. Exit code ${result.exitCode}. Signal ${result.signal}.`,
438-
retry: !!result.signal,
438+
retry: result.signal === 'SIGKILL', // retry on SIGKILL because the oomkiller might have stopped the process
439439
};
440440
} catch (error) {
441441
return { status: BB_RESULT.FAILURE, reason: `${error}` };

yarn-project/prover-node/src/job/epoch-proving-job.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ export class EpochProvingJob implements Traceable {
203203
return;
204204
}
205205
this.log.error(`Error running epoch ${epochNumber} prover job`, err, { uuid: this.uuid, epochNumber });
206-
this.state = 'failed';
206+
if (this.state === 'processing' || this.state === 'awaiting-prover' || this.state === 'publishing-proof') {
207+
this.state = 'failed';
208+
}
207209
} finally {
208210
clearTimeout(this.deadlineTimeoutHandler);
209211
await this.epochCheckPromise?.stop();

0 commit comments

Comments
 (0)