Skip to content
Snippets Groups Projects
Commit 054d2da3 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Set 'destPathList' even on job error. This should prevent RetrieveCleaner process crash.

parent 1a6fb374
No related branches found
No related tags found
No related merge requests found
Pipeline #9379 passed
...@@ -343,12 +343,6 @@ class RetrieveExecutor(TaskExecutor): ...@@ -343,12 +343,6 @@ class RetrieveExecutor(TaskExecutor):
self.jobObj.setResults(results) self.jobObj.setResults(results)
if status == ("OK"):
self.jobObj.setPhase("COMPLETED")
self.jobObj.setEndTime(datetime.datetime.now().isoformat())
self.dbConn.insertJob(self.jobObj)
self.logger.info("Job phase updated to COMPLETED.")
# Add a list of physical destination paths for each VOSpace node in the node list # Add a list of physical destination paths for each VOSpace node in the node list
self.logger.info("Generating physical destination paths for VOSpace nodes...") self.logger.info("Generating physical destination paths for VOSpace nodes...")
for vospacePath in self.nodeList: for vospacePath in self.nodeList:
...@@ -361,6 +355,12 @@ class RetrieveExecutor(TaskExecutor): ...@@ -361,6 +355,12 @@ class RetrieveExecutor(TaskExecutor):
self.destPathList.append(destPath) self.destPathList.append(destPath)
self.jobObj.jobInfo["destPathList"] = self.destPathList.copy() self.jobObj.jobInfo["destPathList"] = self.destPathList.copy()
if status == ("OK"):
self.jobObj.setPhase("COMPLETED")
self.jobObj.setEndTime(datetime.datetime.now().isoformat())
self.dbConn.insertJob(self.jobObj)
self.logger.info("Job phase updated to COMPLETED.")
msg = f""" msg = f"""
########## VOSpace data retrieval procedure summary ########## ########## VOSpace data retrieval procedure summary ##########
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment