Skip to content

Commit

Permalink
Included srun in the scratch_copy process
Browse files Browse the repository at this point in the history
  • Loading branch information
Shettland committed Oct 23, 2023
1 parent a7a9766 commit 0c09f94
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bu_isciii/scratch.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def copy_scratch(self):
if protocol == "rsync":
rsync_command = sysrsync.get_rsync_command(
source=self.full_path,
destination="/scratch/bi/",
destination=self.conf["scratch_path"],
options=self.conf["options"],
exclusions=self.conf["exclusions"],
sync_source_contents=False,
Expand Down Expand Up @@ -171,8 +171,10 @@ def revert_copy_scratch(self):
if self.service_folder in dest_folder:
try:
if self.conf["protocol"] == "rsync":
# /scratch/bi/ is used due to permission issues
scratch_bi_path = "".join("/scratch/bi/", self.service_folder)
# scratch_tmp cannot be used due to permission issues
scratch_bi_path = "".join(
self.conf["scratch_path"], self.service_folder
)
rsync_command = sysrsync.get_rsync_command(
source=scratch_bi_path,
destination=dest_dir,
Expand Down

0 comments on commit 0c09f94

Please sign in to comment.