Skip to content

Commit

Permalink
fix: delay pdf generation to ensure sufficient time for async task to…
Browse files Browse the repository at this point in the history
… run
  • Loading branch information
macite committed Jul 30, 2024
1 parent 875b831 commit 6753d80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/portfolio_evidence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def self.move_to_pid_folder
pid_folder = File.join(student_work_dir(:in_process), "pid_#{Process.pid}")

# Move everything in "new" to "pid" folder but retain the old "new" folder
FileHelper.move_files(student_work_dir(:new), pid_folder, true, DateTime.now - 1.minute)
FileHelper.move_files(student_work_dir(:new), pid_folder, true, DateTime.now - 30.minutes)
pid_folder
end

Expand Down

0 comments on commit 6753d80

Please sign in to comment.