solid_queue_autoscaler 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81d3e6d0be9fecbd42eb8e0539acec901babd77d99688e685a051a4c84e8c90f
4
- data.tar.gz: 987c1f62cec4ce7435a1c5c07d37a01e15705919b81d5e7f8d28cb04688f91f5
3
+ metadata.gz: 39531d30eeaa5c53e6c5f4fb01f106b586ebe9b0243be5d7e6ae7748d591c52f
4
+ data.tar.gz: f8a4035f055d66f9ce04d6450653c86cc9ee6cd632145db26e0b8c2c2085a731
5
5
  SHA512:
6
- metadata.gz: d07364fdabd8df5280f9f9216513fa1f7d0dc480f46a4ee7a7b854c586bf64131fd9f28495cf7cae698df90812c7713eb30c686265cebfeac5008017dab00e7e
7
- data.tar.gz: cf31a9d4f505b68e80d12efbc36cbfb97452ac9207c66c6075093b77aeb74660b2fd20b722fa41dfd5e1d07be2dd1cf15594815ce1c775db02f6c7314e0e4f11
6
+ metadata.gz: df8dca7f8a6e75ee7feea851c3120af1fe522e273e7b937d1df02988bc8297dc72094ea272095db490c80ae4d617bb47f15e5adbee26bd36706373f0c020c7cb
7
+ data.tar.gz: aa902d3745ab5992f5698bb130078170217ed389511aba8f6669704fafe1e04a7ab8df7ff2391104af75951d4ce68941f3cf15df0bf3c1c2cae05e1d4d26648e
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.10] - 2025-01-17
11
+
12
+ ### Fixed
13
+ - **Fixed Dashboard not finding events table in multi-database setups** - `ScaleEvent.default_connection` now correctly uses `SolidQueue::Record.connection` instead of `ActiveRecord::Base.connection`
14
+ - This was causing "Events table not found" errors when using a separate queue database
15
+
10
16
  ## [1.0.9] - 2025-01-17
11
17
 
12
18
  ### Added
@@ -395,6 +395,11 @@ module SolidQueueAutoscaler
395
395
  private
396
396
 
397
397
  def default_connection
398
+ # Use SolidQueue's connection for multi-database setups (same as Configuration.connection)
399
+ if defined?(SolidQueue::Record) && SolidQueue::Record.respond_to?(:connection)
400
+ return SolidQueue::Record.connection
401
+ end
402
+
398
403
  ActiveRecord::Base.connection
399
404
  end
400
405
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidQueueAutoscaler
4
- VERSION = '1.0.9'
4
+ VERSION = '1.0.10'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_queue_autoscaler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - reillyse