Just use solid_queue in development
All checks were successful
Ruby CI / test (pull_request) Successful in 26s

So you won't rip your hair out because async is thread local
This commit is contained in:
Andrew Tomaka 2025-01-17 00:16:31 -05:00
parent 97b0460f38
commit 959dc586c5
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 10 additions and 1 deletions

View file

@ -3,7 +3,12 @@
# not a terminal started via bin/rails console! Add "console" to any action or any ERB template view # not a terminal started via bin/rails console! Add "console" to any action or any ERB template view
# to make the web console appear. # to make the web console appear.
development: development:
adapter: async adapter: solid_cable
connects_to:
database:
writing: cable
polling_interval: 0.1.seconds
message_retention: 1.day
test: test:
adapter: test adapter: test

View file

@ -21,6 +21,10 @@ development:
<<: *default <<: *default
database: storage/development_queue.sqlite3 database: storage/development_queue.sqlite3
migrations_paths: db/queue_migrate migrations_paths: db/queue_migrate
cable:
<<: *default
database: storage/development_cable.sqlite3
migrations_paths: db/cable_migrate
# Warning: The database defined as "test" will be erased and # Warning: The database defined as "test" will be erased and