Error undefined method clear_active_connections! #70

Closed
opened 2025-12-29 00:22:16 +01:00 by adam · 2 comments
Owner

Originally created by @dvogtfstr on GitHub (Dec 13, 2024).

hey ✌ getting following error, someone an idea?

[2024-12-13T14:23:41.064525 #70777] ERROR -- : [...]_job.rb:7:in `perform'
.../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:80:in `perform_job'
.../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:43:in `block in perform'
#<Thread:0x000000010ace79e8 .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:43 run> terminated with exception (report_on_exception is true):
.../3.1.6/lib/ruby/gems/3.1.0/gems/activerecord-7.2.2.1/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `clear_active_connections!' for ActiveRecord::Base:Class (NoMethodError)
Did you mean?  clear_validators!
        from .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:50:in `block in save'
        from .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:47:in `synchronize'
        from .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:47:in `save'
        from .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:89:in `perform_job'
        from .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:43:in `block in perform'
undefined method `clear_active_connections!' for ActiveRecord::Base:Class
Did you mean?  clear_validators!

Something wrong here

thanks :)

Originally created by @dvogtfstr on GitHub (Dec 13, 2024). hey ✌ getting following error, someone an idea? ```ruby [2024-12-13T14:23:41.064525 #70777] ERROR -- : [...]_job.rb:7:in `perform' .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:80:in `perform_job' .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:43:in `block in perform' #<Thread:0x000000010ace79e8 .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:43 run> terminated with exception (report_on_exception is true): .../3.1.6/lib/ruby/gems/3.1.0/gems/activerecord-7.2.2.1/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `clear_active_connections!' for ActiveRecord::Base:Class (NoMethodError) Did you mean? clear_validators! from .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:50:in `block in save' from .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:47:in `synchronize' from .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:47:in `save' from .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:89:in `perform_job' from .../3.1.6/lib/ruby/gems/3.1.0/gems/crono-2.0.1/lib/crono/job.rb:43:in `block in perform' undefined method `clear_active_connections!' for ActiveRecord::Base:Class Did you mean? clear_validators! ``` Something wrong [here](https://github.com/plashchynski/crono/blob/2e663c210415dac584b7eaede27657161a8ccdd6/lib/crono/job.rb#L50) thanks :)
adam closed this issue 2025-12-29 00:22:16 +01:00
Author
Owner

@dvogtfstr commented on GitHub (Dec 18, 2024):

@plashchynski could you create a new release with this inlcuded 🙏🏾 please

@dvogtfstr commented on GitHub (Dec 18, 2024): @plashchynski could you create a new release with [this](https://github.com/plashchynski/crono/pull/127) inlcuded 🙏🏾 please
Author
Owner

@plashchynski commented on GitHub (Dec 18, 2024):

Hey @dvogtfstr published v2.1.0 with this change. Thank you

@plashchynski commented on GitHub (Dec 18, 2024): Hey @dvogtfstr published v2.1.0 with this change. Thank you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/crono#70