Skip to content

Commit

Permalink
Add admin option to enable/disable compression when archiving task di…
Browse files Browse the repository at this point in the history
…rectories (bugfix) aces#1123
  • Loading branch information
MontrealSergiy committed Aug 27, 2024
1 parent b51bb1f commit 25dddd7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions BrainPortal/app/models/cluster_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1321,7 +1321,7 @@ def in_situ_workdir_archive_file(nozip) #:nodoc:
# state of the workdir can be performed with
# unarchive_work_directory().
def archive_work_directory(nozip = false)
self.addlog("archiving, compression #{nozip}")

# Keep updated_at value in order to reset it at the end of method
updated_at_value = self.updated_at

Expand Down Expand Up @@ -1534,10 +1534,9 @@ def unarchive_work_directory
# Restoring the state of the workdir can be performed
# with unarchive_work_directory_from_userfile().
def archive_work_directory_to_userfile(dp_id = nil, nozip = nil)
return false unless self.archive_work_directory
return false unless self.archive_work_directory(nozip)
file_id = self.workdir_archive_userfile_id
return true if file_id

full=self.full_cluster_workdir
if ! Dir.exists?(full)
self.addlog("Cannot archive: work directory '#{full}' does not exist.")
Expand Down

0 comments on commit 25dddd7

Please sign in to comment.