Skip to content

Commit

Permalink
Set job_directory, skip extra dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Dec 20, 2023
1 parent 6e4ae5f commit 57d7858
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/runners/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def _get_metadata_container(
job_info = JobInfo(
working_directory=working_directory or job_wrapper.working_directory,
tool_directory=None,
job_directory=None,
job_directory=job_wrapper.working_directory,
tmp_directory=None,
home_directory=None,
job_directory_type=job_directory_type,
Expand Down
4 changes: 2 additions & 2 deletions lib/galaxy/objectstore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@ def persist_extra_files(
)


def get_disk_paths(objectstore: BaseObjectStore) -> Set[str]:
def get_disk_paths(objectstore: BaseObjectStore, include_extra_dirs=False) -> Set[str]:
backends = objectstore.get_concrete_store_backends()
paths = set()
for backend in backends:
Expand All @@ -1636,7 +1636,7 @@ def get_disk_paths(objectstore: BaseObjectStore) -> Set[str]:
paths.add(disk_path.file_path)
if disk_path.object_store_cache_path:
paths.add(disk_path.object_store_cache_path)
if disk_path.extra_dirs:
if include_extra_dirs and disk_path.extra_dirs:
for extra_dir in disk_path.extra_dirs.values():
paths.add(extra_dir)
return paths

0 comments on commit 57d7858

Please sign in to comment.