在 rails 应用程序上生成所有后台作业的列表?

Generate a list of all background jobs on a rails app?

我已经尝试了 ActiveJob::Base.descendants ApplicationJob.descendants return []。还有其他快速技巧吗?

运行 Rails.application.eager_load!ApplicationJob.descendants 之前。它应该可以解决问题