Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot expire connection, it is not currently leased #283

Open
bharathiraja-mallow opened this issue Aug 30, 2024 · 1 comment
Open

Cannot expire connection, it is not currently leased #283

bharathiraja-mallow opened this issue Aug 30, 2024 · 1 comment

Comments

@bharathiraja-mallow
Copy link

Steps to reproduce

Recently, we have added apartment gem for our multiple schema usecase in postgres. It was working smoothly for some days. Usually we receive a high traffic in our sidekiq server on month end. In that time, things are started getting break and facing the below error on ActiveJobs

ActiveRecord::ActiveRecordError: Cannot expire connection, it is not currently leased.

Once this error is raised, that particular job is moved to retry set in sidekiq and reprocessed again. However, it isn't complete. It reaches the maximum retry count and gets shifted to dead state

Can anyone from this community share your thoughts on this? Would help a lot to us

  • Database: Postgresql 13.15

  • Apartment version: 2.9.0

  • Apartment config (in config/initializers/apartment.rb or so):

    • use_schemas: (true)
  • Rails (or ActiveRecord) version: 5.0.3

  • Ruby version: 2.4.10

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added stale and removed stale labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant