code: def _serialiseExistingJob(self, jobGraph, jobStore, returnValues):
          
          self._serialiseJobGraph(jobGraph, jobStore, returnValues, False)
          #Drop the completed command, if not dropped already
          jobGraph.command = None
          #Merge any children (follow-ons) created in the initial serialisation
          #with children (follow-ons) created in the subsequent scale-up.
          assert len(jobGraph.stack) >= 4
          combinedChildren = jobGraph.stack[-1] + jobGraph.stack[-3]
          combinedFollowOns = jobGraph.stack[-2] + jobGraph.stack[-4]
          jobGraph.stack = jobGraph.stack[:-4]
          if len(combinedFollowOns) > 0:
              jobGraph.stack.append(combinedFollowOns)
          if len(combinedChildren) > 0:
              jobGraph.stack.append(combinedChildren)
docs: Serialise an existing job.