solid_queue: Error: "no such table: solid_queue_recurring_tasks"
Greetings!
I’m all fired up after Rails World, and I’m getting started with a new Rails 8 application. I’ve installed this gem, along with mission_control-jobs. My stack is otherwise just a brand new Rails 8 application using SQLite.
I’m seeing the following error when trying to access the “Recurring” tab for Mission Control:
SQLite3::SQLException: no such table: solid_queue_recurring_tasks
I can see the table listed in db/queue_schema.rb, but it’s not listed in the tables of my development database either. I’m not really sure what’s going on beyond these simple facts.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28 (19 by maintainers)
Personally I think this is a really odd choice. As soon as your Rails app uses any database adapter, using
solid_queuein development comes basically for free. And I would bet that every development team strifes to use a setup as similar to production in development, so I really doubt theasyncadapter is actually used in many projects.Maybe it makes the initial setup a bit simpler. But it seems to have the potential to cause a bit of confusion shortly after.
Got it!
Rails doesn’t configure
solid_queuein development because it’s intended to be used in production, and theasyncadapter in development. There’s a small note about this in the Installation section in the README, but very small 😅 Improving this is already recorded in https://github.com/rails/solid_queue/issues/332, I think that would cover this.Totally a copy/paste error on my part!
Pasting to help any future travellers:
OK, so the big take away (and surprise) for me was that SQ wasn’t configured for development out of the box. This is a bit surprising as other queue systems (e.g. Good Job, Sidekiq) work in development out of the box.
If you’re amenable we could solve for the surprise with documentation?
Hi Rosa.
Yup! More or less…
rails new my_apprails solid_queue:installrails db:create db:migratebin/jobs💥 fails with the error noted above 💥It’s super weird: all of the other tables are listed except recurring tasks.
1.0