Closed nathanpalmer closed 6 years ago
FWR really only supports Rails 5+. Rails 4 is several years old and newer infrastructure like Faktory can't support older releases like that. I would prefer to see a patch which simply disallows use on Rails <5.
Fair enough. I've modified it so it'll block the startup and show a warning.
**************************************************
🚫 ERROR: Faktory Worker does not support Rails versions under 5.x - please ensure your workers are updated
**************************************************
Your current version of Rails, 4.2.10, is not supported
/Users/nathan/Source/OpenSource/faktory_worker_ruby/lib/faktory/rails.rb:24:in `block (2 levels) in <class:Rails>'
/Users/nathan/Source/OpenSource/faktory_worker_ruby/lib/faktory.rb:57:in `configure_worker'
/Users/nathan/Source/OpenSource/faktory_worker_ruby/lib/faktory/rails.rb:22:in `block in <class:Rails>'
Thanks Nathan!
I pulled Faktory into a project that was using Rails
4.2.10
and it started failing with this messageWhen researching both Rails APIs I noticed that Rails 4 has
reloaders
but notreloader
(singular.) I also noticed that Sidekiq was only setting up the reloader on Rails 5, so I added this to match.Let me know what you think.