Rykian / clockwork

A scheduler process to replace cron.
MIT License
544 stars 66 forks source link

Error loading clockwork on Heroku/Rails v6 #59

Open kapso opened 5 years ago

kapso commented 5 years ago

Clockwork errors out when using Rails 6 default autoloader = : zeitwerk

Opened this on Zeitwerk as well - https://github.com/fxn/zeitwerk/issues/83

swiknaba commented 4 years ago

I believe, this issue can be closed. Following the linked issue of zeitwerk, the problem as due to inconsistent filename/module name which is an zeitwerk-inherent issue, not necessarily related to the clockwork gem.

Having the clock.rb config file under ROOT/config/clock.rb works with Rails 6 using zeitwerk and avoids issues with autoloading when using Rails' default settings for autoload paths.

Also, this is unrelated to Heroku if I understood the issue on zeitwerk.