resque / resque/resque-scheduler
LoadError: No such file to load -- MY_APP_sessions_controller
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 1.7k
- Forks
- 477
- PR merge metrics
- No merged PRs in 30d
Description
When I run "rake resque:work" under resque-scheduler, the following error happens:
$ rake --trace resque:work
** Invoke resque:work (first_time)
** Invoke resque:preload (first_time)
** Invoke resque:setup (first_time)
** Execute resque:setup
** Execute resque:preload
rake aborted!
LoadError: No such file to load -- MY_APP_sessions_controller
/usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:317:in `rescue in depend_on'
/usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:312:in `depend_on'
/usr/local/lib/ruby/gems/2.0.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:225:in `require_dependency'
...
This is similar to https://github.com/resque/resque/issues/1235 and this is fixed by adding the followings at lib/tasks/resque.rake:
...
namespace :resque do
task setup: :environment do
...
resque-scheduler README.md "Rake integration" section looks wrong. If so, could you fix it?
$ uname -a
Linux ... 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ ruby -v
ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-linux]
$ grep resq Gemfile.lock
resque (1.25.2)
resque-scheduler (3.0.0)
resque (~> 1.25)
resque
resque-scheduler
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Rake integration section of README.md and compare its documented setup with lib/tasks/resque.rake, especially the resque:setup task dependency shown in the issue. Update the README so the documented invocation matches the required setup, then verify the example against the reported resque-scheduler environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 40/100