Skip to content

Commit

Permalink
Merge pull request #5481 from avalonmediasystem/proxy_status
Browse files Browse the repository at this point in the history
Use convenience method to test for workflow completion
  • Loading branch information
cjcolvar authored Nov 27, 2023
2 parents 13e8aaf + fd7ac66 commit 13ebbc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/iiif_canvas_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ def stream_urls
end

def section_processing?(master_file)
encode_gid = "gid://ActiveEncode/#{master_file.encoder_class}/#{master_file.workflow_id}"
ActiveEncode::EncodeRecord.find_by(global_id: encode_gid).state.to_s.upcase != 'COMPLETED'
!master_file.succeeded?
end

def supplemental_captions_transcripts
Expand Down

0 comments on commit 13ebbc3

Please sign in to comment.