We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9d1cd7 commit 56ec166Copy full SHA for 56ec166
1 file changed
src/components/c2d/compute_engine_docker.ts
@@ -1551,7 +1551,14 @@ export class C2DEngineDocker extends C2DEngine {
1551
}
1552
})
1553
await initContainer.start()
1554
- await initContainer.wait()
+ 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}`)
1562
return true
1563
} catch (e) {
1564
CORE_LOGGER.error(`Failed to initialize volume permissions: ${e.message}`)
0 commit comments