Class: Pageflow::PollZencoderJob Private
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Pageflow::PollZencoderJob
- Includes:
- StateMachineJob
- Defined in:
- app/jobs/pageflow/poll_zencoder_job.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#perform_with_result(file, options, api = ZencoderApi.instance) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/jobs/pageflow/poll_zencoder_job.rb', line 8 def perform_with_result(file, , api = ZencoderApi.instance) ||= {} catch(:halt) do poll_zencoder(file, api) fetch_input_details(file, api) file.post_process_encoded_files unless [:skip_post_processing] :ok end ensure file.save! end |