def write(self):
        updatingFile = os.path.join(self.jobDir, "updating")
        open(updatingFile, 'w').close()
        self._write(".new")
        os.remove(updatingFile)
        os.rename(self.getJobFileName() + ".new", self.getJobFileName())
        return self.getJobFileName()
Updates a job's status on disk atomically
dataset/ETHPy150Open benedictpaten/jobTree/src/job.py/Job.write