Merge pull request #1824 from alicevision/dev/submitterJobTitles

[submitters] Add an option to update the job title on submitters
This commit is contained in:
Fabien Castan 2022-12-05 16:22:33 +01:00 committed by GitHub
commit ffca9c68e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 31 additions and 14 deletions

View file

@ -278,6 +278,7 @@ class UIGraph(QObject):
self._selectedNodes = QObjectListModel(parent=self)
self._hoveredNode = None
self.submitLabel = "{projectName}"
self.computeStatusChanged.connect(self.updateLockedUndoStack)
def setGraph(self, g):
@ -457,7 +458,7 @@ class UIGraph(QObject):
self.save() # graph must be saved before being submitted
self._undoStack.clear() # the undo stack must be cleared
node = [node] if node else None
self._taskManager.submit(self._graph, os.environ.get('MESHROOM_DEFAULT_SUBMITTER', ''), node)
self._taskManager.submit(self._graph, os.environ.get('MESHROOM_DEFAULT_SUBMITTER', ''), node, submitLabel=self.submitLabel)
def updateGraphComputingStatus(self):
# update graph computing status