Closed SrAnthony closed 3 months ago
Btw solid queue is configured like this in the application.rb:
config.solid_queue.connects_to = { database: { writing: :queue, reading: :queue } }
And solid cache on solid_cache.yml:
development:
database: cache
production:
database: cache
Passing the name of the connection as a symbol worked for me:
default: &default
adapter: solid_cable
polling_interval: 1.second
keep_messages_around_for: 1.day
connects_to:
database:
writing: :cable
reading: :cable
development:
<<: *default
silence_polling: true
test:
adapter: test
production:
<<: *default
polling_interval: 0.1.seconds
keep_messages_around_for: 10.minutes
Just cut 1.0.2 which should fix this
I'm using this setup on my database.yml:
Then, when trying to setup solid cache like this:
I get the error:
'{ development => cable }' is not a valid configuration. Expected 'cable' to be a URL string or a Hash. (ActiveRecord::DatabaseConfigurations::InvalidConfigurationError)
Am I missing something?
I'm using solid cache and solid queue using that database.yml setup without problems.