Loading transfer_service/import_executor.py +6 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,7 @@ class ImportExecutor(TaskExecutor): vospacePath = parentPath + '/' + nodeName cnode.setParentPath(parentPath) cnode.setLocationId(locationId) cnode.setJobId(self.jobId) cnode.setCreatorId(self.userId) cnode.setContentLength(0) cnode.setAsyncTrans(True) Loading Loading @@ -135,6 +136,7 @@ class ImportExecutor(TaskExecutor): vospacePath = parentPath + '/' + nodeName dnode.setParentPath(parentPath) dnode.setLocationId(locationId) dnode.setJobId(self.jobId) dnode.setCreatorId(self.userId) dnode.setContentLength(os.path.getsize(file)) dnode.setContentMD5(self.md5calc.getMD5(file)) Loading Loading @@ -168,6 +170,10 @@ class ImportExecutor(TaskExecutor): m.addRecipient(self.adminEmail) if status == "OK": for node in self.nodeList: vospacePath = node[2] if node[-1] == "DONE": self.dbConn.setJobId(vospacePath, None) timestamp = datetime.datetime.now().strftime("%Y_%m_%d-%H_%M_%S") nodeListFile = os.path.join(self.resDir, "vos_import_report-" + timestamp) try: Loading Loading
transfer_service/import_executor.py +6 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,7 @@ class ImportExecutor(TaskExecutor): vospacePath = parentPath + '/' + nodeName cnode.setParentPath(parentPath) cnode.setLocationId(locationId) cnode.setJobId(self.jobId) cnode.setCreatorId(self.userId) cnode.setContentLength(0) cnode.setAsyncTrans(True) Loading Loading @@ -135,6 +136,7 @@ class ImportExecutor(TaskExecutor): vospacePath = parentPath + '/' + nodeName dnode.setParentPath(parentPath) dnode.setLocationId(locationId) dnode.setJobId(self.jobId) dnode.setCreatorId(self.userId) dnode.setContentLength(os.path.getsize(file)) dnode.setContentMD5(self.md5calc.getMD5(file)) Loading Loading @@ -168,6 +170,10 @@ class ImportExecutor(TaskExecutor): m.addRecipient(self.adminEmail) if status == "OK": for node in self.nodeList: vospacePath = node[2] if node[-1] == "DONE": self.dbConn.setJobId(vospacePath, None) timestamp = datetime.datetime.now().strftime("%Y_%m_%d-%H_%M_%S") nodeListFile = os.path.join(self.resDir, "vos_import_report-" + timestamp) try: Loading