You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: