chore: skip agent manager if flag is false
This commit is contained in:
parent
a85f00171d
commit
8374bc0496
1 changed files with 4 additions and 2 deletions
|
|
@ -8,8 +8,10 @@ let bootstrapPromise: Promise<void> | undefined;
|
|||
const runBootstrap = async () => {
|
||||
await runDbMigrations();
|
||||
await runMigrations();
|
||||
await agentManager.start();
|
||||
await spawnLocalAgent();
|
||||
if (process.env.ENABLE_LOCAL_AGENT === "true") {
|
||||
await agentManager.start();
|
||||
await spawnLocalAgent();
|
||||
}
|
||||
await startup();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue