Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proper place for settings #663

Open
thisismydesign opened this issue Jan 23, 2019 · 0 comments
Open

Proper place for settings #663

thisismydesign opened this issue Jan 23, 2019 · 0 comments

Comments

@thisismydesign
Copy link

I was following the documentation and set up the rake task as usual:

 # https://github.com/resque/resque-scheduler#rake-integration
require 'resque/scheduler/tasks'
namespace :resque do
  task setup_schedule: :setup do
    require 'resque-scheduler'

     Resque::Scheduler.dynamic = true
  end

   task scheduler: :setup_schedule
end

The app has a

  • web servive running rails and also resque-web + scheduler additions
  • worker process
  • scheduler process

The app schedules dynamic jobs from the web and worker services. The ones scheduled from the web service seem fine but he ones scheduled from the worker service:

  • don't show up in the web view (they actually do after deactivating another which I have no clue why)
  • don't show up in Resque.schedule response
  • but otherwise are scheduled and running

Also for the web service the delete buttons are not showing up for the dynamic schedules.

It seems that this is caused by services not having the Resque::Scheduler.dynamic = true setting. Moving this line into config/initializers/resque.rb resolves the issue.

I think this should be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant