The attribute _server_id is a unique identifier of a Model but does change each time the SpinalHub restartrestarts.
On Model Creation, the Model will get it's final _server_id when the SpinalHub server "acknowledgeacknowledges" the Model, for that the Model will go through several mutations: process |
|
|
---|
1 | Creation of the Model. | The _server_id doesn't exist yet | 2 | The Model is pushed in an existing model or store stored as is. (Send a request to push the Model in the server) | The _server_id is temporary temporarily and is socked in FileSystem._tmp_objects object | 3 | The SpinalHub server "acknowledgeacknowledges" the Model and tell tells it to the Organ, | The _server_id is definite (until the next restart of the ServerHub) and is moved from the static attributes Object FileSystem._tmp_objects to the FileSystem._objects. |
|