Skip to content

Commit

Permalink
fix: Ferrum::ProcessTimeoutError
Browse files Browse the repository at this point in the history
  • Loading branch information
takaishi committed Nov 27, 2024
1 parent 1aa7848 commit fd81a96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/generate_entrysheet_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def perform(conference_id, profile_id, speaker_id = nil, printer_id = nil)

encrypted = ActiveSupport::MessageEncryptor.new(Rails.application.secret_key_base.byteslice(0..31)).encrypt_and_sign(obj)

page = Ferrum::Browser.new
page = Ferrum::Browser.new({ browser_options: { 'no-sandbox': nil } })
page.goto("http://#{Rails.application.routes.default_url_options[:host]}/#{conference.abbr}/entry_sheet?encrypted=#{Base64.urlsafe_encode64(encrypted)}")
pdf_file = Rails.root.join('tmp', "#{profile_id}_entry_sheet.pdf")
page.pdf(
Expand Down
2 changes: 2 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ services:
- db
- localstack
fifo-worker:
platform: linux/amd64
build: .
entrypoint: /bin/sh -c "docker/wait-for-it.sh db:3306 --timeout=600 && bundle exec aws_sqs_active_job --queue fifo"
environment:
<<: *dkenv
BROWSER_PATH: /usr/bin/google-chrome
tty: true
stdin_open: true
tmpfs:
Expand Down

0 comments on commit fd81a96

Please sign in to comment.