In the metadata tool action, ensure job_working_directory exists before

trying to get its path. Otherwise, hierarchical/distributed object
stores will be broken.
This commit is contained in:
Nate Coraor
2015-03-16 10:05:37 -04:00
parent ad9686d136
commit 710dfcf9f9
+1
View File
@@ -70,6 +70,7 @@ class SetMetadataToolAction( ToolAction ):
# Store original dataset state, so we can restore it. A separate table might be better (no chance of 'losing' the original state)?
incoming[ '__ORIGINAL_DATASET_STATE__' ] = dataset.state
input_paths = [DatasetPath( dataset.id, real_path=dataset.file_name, mutable=False )]
app.object_store.create(job, base_dir='job_work', dir_only=True, extra_dir=str(job.id))
job_working_dir = app.object_store.get_filename(job, base_dir='job_work', dir_only=True, extra_dir=str(job.id))
external_metadata_wrapper = JobExternalOutputMetadataWrapper( job )
cmd_line = external_metadata_wrapper.setup_external_metadata( dataset,