mission_control-jobs: mission_control-jobs fails with new Rails 8.0.0.beta1
- Create new rails app with 8.0.0.beta1, add dummy job;
- Add gem “solid_queue”, “>= 1.0.0”
- Mount under e.g. /jobs -> mount MissionControl::Jobs::Engine, at: “/jobs”
- Open up /jobs
Error comes:
MissionControl::Jobs::Errors::IncompatibleAdapter in MissionControl::Jobs::QueuesController#index Adapter Async must implement
queue_names
private def raise_incompatible_adapter_error_from(method_name) raise MissionControl::Jobs::Errors::IncompatibleAdapter, “Adapter #{ActiveJob.adapter_name(self)} must implement
#{method_name}” end end
mission_control-jobs (0.3.2) lib/mission_control/jobs/adapter.rb:154:in
raise_incompatible_adapter_error_from' mission_control-jobs (0.3.2) lib/mission_control/jobs/adapter.rb:91:inqueues’ mission_control-jobs (0.3.2) lib/active_job/querying.rb:24:in `fetch_queues’
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 24 (4 by maintainers)
OK! I got it working on rails 8 Beta1!
The step is simply: DONT USE
rails solid_queue:install- but instead add the part of the production.rb to your development.rb:Then delete all previous rails queue DBs and config it in your database.yml that way:
after this make sure you got the original “queue_schema.rb” file from rails 8!
Then do a
rails db:prepare, NOT Arails db:migrate:queueas this will create an empty schema.rb file instead! Then after the db prepare has run you can use the db:migrate as it then will recreate it from the datase itself.Quite an annoying path to take to have this working in dev…
Sorry to revive an old thread, I’m trying with a fresh project on Rails 8.0.1 and these steps don’t seem work anymore sadly.
Only generate the
developmentdatabase, and doesn’t actually generate thesolid_queuedatabase.It seems, moreover, that
rails db:schema:queuemight have been removed from task list?What Else I Tried
db/queue_migrate/queue_schema.rband run migrations, no luckdb/queue_migrate/schema.rband tried - still no luck./bin/jobs startwill produceSeems the error arises here in
solid_queue, and later in Active Record.Thanks @kbachl , should we add this instructions on README.md?