simulate checkpoint failure for 5 minutes

This commit is contained in:
nicktrn
2024-06-04 15:23:14 +01:00
parent 5177fc4091
commit 5b289d4ec0
+4 -2
View File
@@ -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();