Method: Atech::ObjectStore::File.execute_query
- Defined in:
- lib/atech/object_store/file.rb
.execute_query(query) ⇒ Object
Run a query on the backend database, attempt to run the query up to 3 times
18 19 20 21 22 23 24 |
# File 'lib/atech/object_store/file.rb', line 18 def self.execute_query(query) tries ||= 3 ObjectStore.backend.query(query) rescue Mysql2::Error => e retry unless (tries -= 1).zero? raise end |