Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktrn committed May 21, 2024
1 parent 334cf0e commit 19f6568
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/core/src/v3/runtime/prodRuntimeManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,16 @@ export class ProdRuntimeManager implements RuntimeManager {
// Resets the clock to the current time
clock.reset();

// The coordinator should cancel any in-progress checkpoints
const { checkpointCanceled, version } = await this.ipc.sendWithAck(
"CANCEL_CHECKPOINT",
{
version: "v2",
reason: "WAIT_FOR_DURATION",
},
31_000
);
try {
// The coordinator should cancel any in-progress checkpoints
const { checkpointCanceled, version } = await this.ipc.sendWithAck(
"CANCEL_CHECKPOINT",
{
version: "v2",
reason: "WAIT_FOR_DURATION",
},
31_000
);

if (checkpointCanceled) {
// There won't be a checkpoint or external resume and we've already completed our internal timeout
Expand Down

0 comments on commit 19f6568

Please sign in to comment.