Skip to content

Helper code for using Sidekiq with Postgres. Extracted from our production code.

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt
Notifications You must be signed in to change notification settings

staqapp/sidekiq-pg_helpers

Repository files navigation

sidekiq-pg_helpers

Helper code for using Sidekiq with Postgres. Extracted from our production code.

ConnectionRecovery

This middleware helps Sidekiq bad Postgres connections on the fly, whenever they fail:

require "sidekiq/pg_helpers/middleware/connection_recovery"

Sidekiq.configure_server do |config|
  config.server_middleware do |chain|
    chain.insert_after Sidekiq::Middleware::Server::ActiveRecord, Sidekiq::PgHelpers::Middleware::ConnectionRecovery
  end
end

About

Helper code for using Sidekiq with Postgres. Extracted from our production code.

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Stars

Watchers

Forks

Packages

No packages published

Languages