Sha256: 641e9b0e7e042c8c530e8bd1c29d609dc0edaaf81f03cef17112aceec4d698a6

Contents?: true

Size: 294 Bytes

Versions: 68

Compression:

Stored size: 294 Bytes

Contents

module Pageflow
  class SubmitFileToZencoderJob < ApplicationJob
    queue_as :default

    include StateMachineJob

    def perform_with_result(file, _options, api = ZencoderApi.instance)
      file.job_id = api.create_job(file.output_definition)
      file.save!

      :ok
    end
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-17.0.3 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-17.0.2 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-17.0.1 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-17.0.0 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-16.2.0 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-16.1.0 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-16.0.0 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-15.8.0 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-14.5.2 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-15.7.1 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-15.7.0 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-15.6.1 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-15.6.0 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-15.5.0 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-15.4.0 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-15.3.0 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-15.2.2 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-15.2.1 app/jobs/pageflow/submit_file_to_zencoder_job.rb
pageflow-15.2.0 app/jobs/pageflow/submit_file_to_zencoder_job.rb