Sha256: 3078dff3910e62bb67688feb6a7cdbc53a90c683151fc71795cca3ed977bb7e9

Contents?: true

Size: 420 Bytes

Versions: 3

Compression:

Stored size: 420 Bytes

Contents

module NewspaperWorks
  # Compose and attach a multi-page PDF from constituent pages, if ready
  #   (if not ready, job retry requires Rails >= 5.1)
  class ComposeIssuePDFJob < NewspaperWorks::ApplicationJob
    retry_on NewspaperWorks::PagesNotReady,
             wait: :exponentially_longer,
             attempts: 8

    def perform(issue)
      NewspaperWorks::IssuePDFComposer.new(issue).compose
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newspaper_works-1.0.1 app/jobs/newspaper_works/compose_issue_pdf_job.rb
newspaper_works-1.0.0 app/jobs/newspaper_works/compose_issue_pdf_job.rb
newspaper_works-0.1.0 app/jobs/newspaper_works/compose_issue_pdf_job.rb