Allow computes to be dynamically or manually allocated

This commit is contained in:
grossmj committed 2023-06-21 22:28:09 +09:30
1 parent c290d75eec
commit 21049d73a5
4 files changed
+9 -6

No files matched your search

+2 -1
View File
@@ -495,7 +495,8 @@ class Controller:
"""
if compute_id is None:
computes = list(self._computes.values())
# get all connected computes
computes = [compute for compute in self._computes.values() if compute.connected is True]
if len(computes) == 1:
# return the only available compute
return computes[0]