From 5b289d4ec00db3b322b7a5713630f0a2cfa1d2a3 Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Tue, 4 Jun 2024 15:23:14 +0100 Subject: [PATCH] simulate checkpoint failure for 5 minutes --- apps/coordinator/src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/coordinator/src/index.ts b/apps/coordinator/src/index.ts index 1e24ae76c..340137905 100644 --- a/apps/coordinator/src/index.ts +++ b/apps/coordinator/src/index.ts @@ -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();