Skip to content

Commit

Permalink
Merge pull request #3531 from mlibrary/HELIO-4530/increase_watermarki…
Browse files Browse the repository at this point in the history
…ng_timeout

HELIO-4530 bump watermarking timeout
  • Loading branch information
sethaj authored Oct 3, 2023
2 parents 892ae00 + 6dff0b4 commit a7b3ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/watermark/watermarkable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def watermark_pdf(entity, title, file_path = nil, chapter_index = nil)

command = "pdftk #{file_path} stamp #{stamp_file_path} output #{stamped_file_path}"

run_command_with_timeout(command, 45) # hopefully 45 seconds is enough for a large PDF at busy times
run_command_with_timeout(command, 90) # hopefully 90 seconds is enough :-) see HELIO-4530
IO.binread(stamped_file_path)
end
end
Expand Down

0 comments on commit a7b3ff6

Please sign in to comment.