mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
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:
1 parent
66c066616b
commit
86a648e759
1 file changed
+4
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user