Commit 65432bec authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Added database nodes cleanup on errors.

parent aeaedd01
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -234,6 +234,9 @@ class ImportExecutor(TaskExecutor):
                self.jobObj.setEndTime(datetime.datetime.now().isoformat())
                self.dbConn.insertJob(self.jobObj)
                self.logger.info("Job phase updated to ERROR.")
                self.logger.info("Removing VOSpace nodes from the database...")
                self.dbConn.deleteNodesByJobId(self.jobId)
                self.logger.info("Database cleanup completed")

                msg = f"""
        ########## VOSpace import procedure summary ##########