Skip to content

Commit

Permalink
simulate checkpoint failure for 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktrn committed Jun 4, 2024
1 parent 5177fc4 commit 5b289d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/coordinator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,10 @@ class Checkpointer {

// TODO: Handle this differently. Currently, this is just used for testing and will cause retries.
if (DISABLE_CHECKPOINT_SUPPORT) {
this.#logger.error("Checkpoint support disabled", { options });
return { success: false, reason: "DISABLED" };
if (performance.now() < 5 * 60 * 1000) {
this.#logger.error("Checkpoint support disabled", { options });
return { success: false, reason: "DISABLED" };
}
}

const controller = new AbortController();
Expand Down

0 comments on commit 5b289d4

Please sign in to comment.