Detail requirements for instance waking requests

These need to make sure instance status is correctly handled, otherwise
they may cause the instance or host to become inoperable.
This commit is contained in:
Hornwitser committed 2026-03-10 02:17:36 +01:00
1 parent 66c066616b
commit 86a648e759
1 file changed
+4 -1
+4 -1
View File
@@ -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,