diff --git a/packages/host/src/Host.ts b/packages/host/src/Host.ts index b096a889..c3f2466e 100644 --- a/packages/host/src/Host.ts +++ b/packages/host/src/Host.ts @@ -74,7 +74,10 @@ async function discoverInstances(instancesDir: string) { return instances; } -// Requests that wake up the instance is responsible for updating the instance state in case of errors. +// Requests that wake up instances are responsible for making sure the +// instance status is correctly updated even if they fail with an error. This +// means they should typically use try catch on anything that can throw +// and call notifyExit upon any errors. const instanceStartingMessages = new Set([ lib.InstanceStartRequest.name, lib.InstanceLoadScenarioRequest.name,