标签: ruby-on-rails sidekiq rails-activejob
我尝试了len() ActiveJob::Base.descendants,两者均返回ApplicationJob.descendants。还有其他快速技巧吗?
len()
ActiveJob::Base.descendants
ApplicationJob.descendants
答案 0 :(得分:2)
在Rails.application.eager_load!之前运行ApplicationJob.descendants。应该可以解决问题
Rails.application.eager_load!