was having this issue on rails 7.2
after implementing resque & resque-pool, i had config.cache_classes = truein the development and production file for worker forking.
config.cache_classes = true
removing this config.cache_classes = true in development.rb fixed the problem