Closed RomanTurner closed 1 year ago
Try to add:
require 'acidic_job/active_kiq'
For me it solved the issue. Looks like this line with require is commented inside gem.
Awesome,
This is working on my test project, but it does not like the argument forwarding shorthand (...) in my other application that is running ruby 2.7.2
AcidicJob::Base on the other hand works fine, so just going to update that when we make the push to ruby v 3+
After following the prescribed setup, I keep running into the issue of Uninitialized constant AcidicJob::ActiveKiq when dealing with pure Sidekiq jobs.
I have created a small rails app for an example: You can clone it: https://github.com/RomanTurner/sidekiq-practice After cloning, you can run
rails db:setup
. This will create/migrate/seed for the database.To find the error you can either travel to the route at localhost:3000/students/:id/example or in the rails console run:
Students::PureSidekiqJob.perform_async(:student_id)