From 0cc00efa7983f18de6aa472be2f24b9c802a2630 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Tue, 30 Apr 2019 12:53:45 +0200 Subject: [PATCH] Add doc for group_id CURA-6483 --- cura/Settings/GlobalStack.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cura/Settings/GlobalStack.py b/cura/Settings/GlobalStack.py index a8e6f2f2c0..15c95c9394 100755 --- a/cura/Settings/GlobalStack.py +++ b/cura/Settings/GlobalStack.py @@ -35,6 +35,11 @@ class GlobalStack(CuraContainerStack): super().__init__(container_id) self.setMetaDataEntry("type", "machine") # For backward compatibility + + # TL;DR: If Cura is looking for printers that belong to the same group, it should use "group_id". + # Each GlobalStack by default belongs to a group which is identified via "group_id". This group_id is used to + # figure out which GlobalStacks are in the printer cluster for example without knowing the implementation + # details such as the um_network_key or some other identifier that's used by the underlying device plugin. self.setMetaDataEntry("group_id", str(uuid.uuid4())) # Assign a new GlobalStack to a unique group by default self._extruders = {} # type: Dict[str, "ExtruderStack"]