Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 363 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 363 Bytes

active_record_postgresql_retry

This gem provides a patch that once included will retry the PostgreSQL operation in case the server has gone away

  1. add it to your Gemfile
  2. require 'activerecord_postgresql_retry' (after requiring activerecord)
  3. declare the following environment variables
  • PG_SLEEP_RETRY, default 0.33 seconds
  • PG_QUERY_RETRY, default 0