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

Fix activerecord 7.1 deprecation warnings #423

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tomgi
Copy link
Contributor

@tomgi tomgi commented Mar 12, 2024

Similar to #407, but fixes 2 related deprecation warnings and adds backward-compatibility with older version of rails


Fixes the following:

DEPRECATION WARNING: Calling ActiveRecord::Base.clear_active_connections! is deprecated. Please call the method directly on the connection handler; for example: ActiveRecord::Base.connection_handler.clear_active_connections!`. (called from call at /app/.bundle/ruby/3.2.0/bundler/gems/shoryuken-869fb0c77f8e/lib/shoryuken/middleware/server/active_record.rb:8)

DEPRECATION WARNING: clear_active_connections! currently only applies to connection pools in the current role (writing). In Rails 7.2, this method will apply to all known pools, regardless of role. To affect only those connections belonging to a specific role, pass the role name as an argument. To switch to the new behavior, pass :all as the role name. (called from call at /app/.bundle/ruby/3.2.0/bundler/gems/shoryuken-869fb0c77f8e/lib/shoryuken/middleware/server/active_record.rb:8)

@nfedyashev
Copy link

This one would be nice to get merged

@peterdavidhamilton
Copy link

💯

@owst
Copy link

owst commented Jul 10, 2024

@ZimbiX can we get this one in too please?

owst added a commit to bambooengineering/que that referenced this pull request Jul 12, 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

Successfully merging this pull request may close these issues.

None yet

4 participants