Skip to content

Commit

Permalink
Fix file discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Sep 12, 2023
1 parent 01d4d43 commit cddc58b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/metadata/set_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,10 @@ def set_meta(new_dataset_instance, file_dict):
if not object_store or not export_store:
# Can't happen, but type system doesn't know
raise Exception("object_store not built")
if not is_deferred and not link_data_only:
if not is_deferred and not link_data_only and os.path.getsize(external_filename):
# Here we might be updating a disk based objectstore when outputs_to_working_directory is used,
# or a remote object store from its cache path.
# empty files could happen when outputs are discovered
object_store_update_actions.append(
partial(
object_store.update_from_file, dataset.dataset, file_name=external_filename, create=True
Expand Down

0 comments on commit cddc58b

Please sign in to comment.