refactor(runtime): let daemon startup failures bubble up
This commit is contained in:
+3
-4
@@ -72,10 +72,9 @@ export class Daemon {
|
|||||||
await this.monitor();
|
await this.monitor();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.isRunning = false;
|
this.isRunning = false;
|
||||||
logger.error(
|
const message = error instanceof Error ? error.message : String(error);
|
||||||
`Daemon failed to start: ${error instanceof Error ? error.message : String(error)}`,
|
logger.error(`Daemon failed to start: ${message}`);
|
||||||
);
|
throw error;
|
||||||
process.exit(1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -256,7 +256,7 @@ export class ModelGrid {
|
|||||||
|
|
||||||
// Initialize containers from config
|
// Initialize containers from config
|
||||||
for (const containerConfig of this.config.containers) {
|
for (const containerConfig of this.config.containers) {
|
||||||
await this.containerManager.addContainer(containerConfig);
|
this.containerManager.addContainer(containerConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize model registry
|
// Initialize model registry
|
||||||
|
|||||||
Reference in New Issue
Block a user