def restart(self):
        self._assertContextManagerUsed()
        if not self.config.restart:
            raise ToilConfigException('Cannot call restart on initial run of workflow')

        try:
            self._batchSystem = self.createBatchSystem(self.config, jobStore=self._jobStore)
            self._setBatchSystemEnvVars()
            self._serialiseEnv()
            self._cacheAllJobs()

            rootJob = self._jobStore.clean(jobCache=self._jobCache)
            return self._runMainLoop(rootJob)
        finally:
            self._shutdownBatchSystem()
Restarts a workflow that has been interrupted. This method should be called if and only if a workflow
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/common.py/Toil.restart