Method: Pageflow::MediaEncodingStateMachine#retryable?

Defined in:
app/state_machines/pageflow/media_encoding_state_machine.rb

#retryable?Boolean

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.

UploadableFile-overrides

Returns:

  • (Boolean)


90
91
92
93
94
95
96
97
98
99
100
# File 'app/state_machines/pageflow/media_encoding_state_machine.rb', line 90

def retryable?
  # Calling `can_retry_encoding?` invokes
  # `Pageflow.config.confirm_encoding_jobs` which might depend on
  # accessing `file.entry.account`. If the file has been reused in
  # a different entry and the original entry has been deleted, we
  # default to making the file not retryable to prevent
  # exceptions.
  entry &&
    can_retry_encoding? &&
    !encoded?
end