Skip to content
Snippets Groups Projects
Commit d816fa49 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Task #9351 #9353 #9355: only add scratch paths for pipelines if they exist on disk

parent 8a9cd166
No related branches found
No related tags found
No related merge requests found
...@@ -75,9 +75,15 @@ class PathResolver: ...@@ -75,9 +75,15 @@ class PathResolver:
path_result = {'found': True, 'message': '', 'path': task_data_path} path_result = {'found': True, 'message': '', 'path': task_data_path}
if task['type'] == 'pipeline': if task['type'] == 'pipeline':
path_result['scratch_paths'] = []
scratch_path = os.path.join(self.scratch_path, 'Observation%s' % task['otdb_id']) scratch_path = os.path.join(self.scratch_path, 'Observation%s' % task['otdb_id'])
if self.pathExists(scratch_path):
path_result['scratch_paths'].append(scratch_path)
share_path = os.path.join(self.share_path, 'Observation%s' % task['otdb_id']) share_path = os.path.join(self.share_path, 'Observation%s' % task['otdb_id'])
path_result['scratch_paths'] = [scratch_path, share_path] if self.pathExists(share_path):
path_result['scratch_paths'].append(share_path)
return path_result return path_result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment