Skip to content

Commit efb6af0

Browse files
committed
fix: retain timed-out/reorg states on the proving jobs
1 parent a01ce1d commit efb6af0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)