From 521f61eace6f0cde31716639875f677d847c4548 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Mon, 1 Dec 2025 13:39:12 -0800 Subject: [PATCH] Sleep for 10s on imageRm error --- src/utils/ceph.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/ceph.ts b/src/utils/ceph.ts index 554a5cf..a14d561 100644 --- a/src/utils/ceph.ts +++ b/src/utils/ceph.ts @@ -1,5 +1,6 @@ import {execa} from 'execa' import * as fsp from 'node:fs/promises' +import {sleep} from './common' import {CLOUD_AGENT_CEPH_CONFIG} from './env' const POOL = 'rbd' @@ -160,6 +161,9 @@ export async function imageRm(imageSpec: ImageSpec) { return } + // Sleep for 10 seconds to avoid excessive requests to ceph + await sleep(10 * 1000) + throw new Error(stderr) }