resque-scheduler

resque-scheduler fails on job remove

放肆的年华 提交于 2020-01-06 18:01:27
问题 I have used the POC from the Github (queue was missing to I have added it: name = 'send_emails' config = {} config[:class] = 'SendEmail' config[:args] = 'POC email subject' config[:cron] = '* * * * * *' config[:persist] = true config[:queue] = 'new' Resque.set_schedule(name, config) sleep(10) #Try to remove the job Resque.remove_schedule(name) I get the following error: /var/lib/gems/1.9.1/gems/resque-scheduler-3.0.0/lib/resque/scheduler.rb:295:in `block in update_schedule': undefined method

resque-scheduler fails on job remove

夙愿已清 提交于 2020-01-06 18:00:00
问题 I have used the POC from the Github (queue was missing to I have added it: name = 'send_emails' config = {} config[:class] = 'SendEmail' config[:args] = 'POC email subject' config[:cron] = '* * * * * *' config[:persist] = true config[:queue] = 'new' Resque.set_schedule(name, config) sleep(10) #Try to remove the job Resque.remove_schedule(name) I get the following error: /var/lib/gems/1.9.1/gems/resque-scheduler-3.0.0/lib/resque/scheduler.rb:295:in `block in update_schedule': undefined method

How do you schedule Resque jobs on Heroku?

 ̄綄美尐妖づ 提交于 2019-12-11 16:34:09
问题 The rescue-scheduler gem installation says to create a separate Rake task for scheduling: https://github.com/resque/resque-scheduler#rake-integration namespace :resque do task :setup_schedule => :setup do ... task :scheduler => :setup_schedule $ rake resque:scheduler However my Heroku Procfile already has a worker process to run Resque: resque: env TERM_CHILD=1 RESQUE_TERM_TIMEOUT=7 QUEUE=* bundle exec rake resque:work COUNT=1 I don't want to create yet another worker process just to run

How to start resque not using rails

倾然丶 夕夏残阳落幕 提交于 2019-12-11 05:53:31
问题 I am using ruby (not rails) and I have install resque gem. According to the manual, I should start the workers using the following command: resque work But this command doesn't start the workers at all (I have checked that resque file in bin/ and it doesn't accept 'work' at all). Here is the output: Usage: resque [options] COMMAND Options: -r, --redis [HOST:PORT] Redis connection string -N, --namespace [NAMESPACE] Redis namespace -h, --help Show this message Commands: remove WORKER Removes a

View Resque log output in Rails server logs

浪子不回头ぞ 提交于 2019-12-11 01:27:32
问题 I've got a Rails 4 app on a Puma server with Resque/Resque-Scheduler running background jobs. What I'd like to know is how I merge the log output of my two Resque workers into my server log, or, of that is not possible, how I can view the log output of my Resque workers. Currently I have not been able to figure out how to view the log output for the workers, so I have no idea what's happening under the hood. I found this blogpost, which suggests adding the following likes to my resque.rake

Using Resque, Puma and Scheduler together on Heroku

不问归期 提交于 2019-12-04 04:58:05
问题 After reviewing numerous guides I would like to confirm my setup. Right now my procfile looks like: web: bundle exec puma -C config/puma.rb config.ru resque: TERM_CHILD=1 RESQUE_TERM_TIMEOUT=10 QUEUES=* bundle exec rake resque:work worker: bundle exec rake resque:work COUNT=1 QUEUE=* scheduler: bundle exec rake resque:scheduler ...and in Heroku : ...and my rake resque setup task : require 'resque' require 'resque/tasks' require 'resque/scheduler/tasks' # http://jademind.com/blog/posts/enable

Using Resque, Puma and Scheduler together on Heroku

那年仲夏 提交于 2019-12-02 00:24:26
After reviewing numerous guides I would like to confirm my setup. Right now my procfile looks like: web: bundle exec puma -C config/puma.rb config.ru resque: TERM_CHILD=1 RESQUE_TERM_TIMEOUT=10 QUEUES=* bundle exec rake resque:work worker: bundle exec rake resque:work COUNT=1 QUEUE=* scheduler: bundle exec rake resque:scheduler ...and in Heroku : ...and my rake resque setup task : require 'resque' require 'resque/tasks' require 'resque/scheduler/tasks' # http://jademind.com/blog/posts/enable-immediate-log-messages-of-resque-workers/ namespace :resque do desc 'Initialize Resque environment'

Resque-Scheduler not working with ActiveJob in Rails 4.2

北慕城南 提交于 2019-11-30 15:13:36
问题 Has anyone been able to get scheduled jobs to work in Rails 4.2? I am using resque, and I am attempting to use resque-scheduler to schedule jobs. I have a schedule that get loaded and the scheduler runs, and even looks like it is running the jobs but it doesn't do anything. resque-scheduler: [INFO] 2014-09-16T01:54:25-07:00: Starting resque-scheduler: [INFO] 2014-09-16T01:54:25-07:00: Loading Schedule resque-scheduler: [INFO] 2014-09-16T01:54:25-07:00: Scheduling friends resque-scheduler: