Skip to content

Commit 56ec166

Browse files
committed
fix: add logs to check status of init volume
1 parent b9d1cd7 commit 56ec166

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/components/c2d/compute_engine_docker.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,14 @@ export class C2DEngineDocker extends C2DEngine {
15511551
}
15521552
})
15531553
await initContainer.start()
1554-
await initContainer.wait()
1554+
const { StatusCode } = await initContainer.wait()
1555+
if (StatusCode !== 0) {
1556+
CORE_LOGGER.error(
1557+
`Volume permission init container exited with code ${StatusCode} for volume ${volumeName}`
1558+
)
1559+
return false
1560+
}
1561+
CORE_LOGGER.info(`Volume permissions initialized successfully for ${volumeName}`)
15551562
return true
15561563
} catch (e) {
15571564
CORE_LOGGER.error(`Failed to initialize volume permissions: ${e.message}`)

0 commit comments

Comments
 (0)