Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/utils/ceph.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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)
}

Expand Down