Skip to content

Commit 1155b5d

Browse files
authored
check if c2d is configured (#1336)
1 parent 13fca26 commit 1155b5d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/components/c2d/compute_engine_docker.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,12 @@ export class C2DEngineDocker extends C2DEngine {
246246
public override async start() {
247247
const config = await getConfiguration()
248248
const envConfig = await this.getC2DConfig().connection
249+
if (!envConfig?.environments?.length) {
250+
CORE_LOGGER.warn(
251+
`Skipping C2D Engine ${this.getC2DConfig().hash}: no environments configured`
252+
)
253+
return
254+
}
249255
let sysinfo = null
250256
try {
251257
sysinfo = await this.docker.info()

0 commit comments

Comments
 (0)