Skip to content

Instantly share code, notes, and snippets.

@danielmfern
Created January 23, 2026 12:38
Show Gist options
  • Select an option

  • Save danielmfern/d359903af3dbbd3056872a0f04b8919c to your computer and use it in GitHub Desktop.

Select an option

Save danielmfern/d359903af3dbbd3056872a0f04b8919c to your computer and use it in GitHub Desktop.
# retry failed F1 files (Amanda Side)
Current.account = Account.find 9
Current.user = User.first
processing_remote_ids = Dam::Blob.where(created_by_id: 1, status: :failed).where('filename like ?', '%f1.jpg').pluck(:processing_remote_id)
processing_remote_id.each do |id|
shot_id, shot_image_id = id.split('.').map(&:to_i)
Dam::CreateDamBlobJob.perform_async(shot_id, shot_image_id)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment