Questions tagged [resque-scheduler]

resque-scheduler is a scheduler for resque jobs

resque-scheduler (https://github.com/resque/resque-scheduler) is a scheduler for resque (https://github.com/resque/resque) jobs

87 questions
2
votes
2 answers

Resque scheduler pass hash argument to Job

I have a job that receives a hash argument in its perform method. I want to call it periodically. I defined a CRON to schedule it on the resque_schedule.yml file. I am trying this way: UpdateInterestHistoryJob: cron: "0 0 * * * America/Sao_Paulo" …
urielSilva
  • 400
  • 1
  • 11
2
votes
1 answer

For loop in job schedueler Resque running in set interval

I have a database that contains some tweets/text that I want posted to twitter in a set interval (for example: every 60 seconds). The tweets should iterate through a for loop and post one tweet in every time interval. I have written a method that…
Jan
  • 239
  • 1
  • 4
  • 17
2
votes
1 answer

Rails how to test Resque in rails console

I have resque and resque-scheduler running on my local machine. Can I test whether my jobs is working or by copy and paste following code in rails console? Resque.enqueue_in 3.seconds, SnippetHighlighter this is my SnippetHighlighter.rb code def…
Kris MP
  • 2,305
  • 6
  • 26
  • 38
2
votes
1 answer

How to pause Resque processing on Heroku?

I'm migrating from Delayed_jobs to Resque and given that I'm going to have a lot of jobs always queued (some in the future), it's impossible to know when I can scale workers down to 0 to do a safe new release. Is there any way to safely tell workers…
Jeremy
  • 942
  • 1
  • 10
  • 28
2
votes
2 answers

how setup active_job and rescue scheduler?

I'm trying to create background jobs for email notification and scraper. I use resque-scheduler (4.0.0), resque (1.25.2) and rails 4.2.1. My config.ru file: # This file is used by Rack-based servers to start the application. require…
bmalets
  • 3,207
  • 7
  • 35
  • 64
2
votes
0 answers

How to prevent extra/arbitrary? resque workers from being created - its causing resque-scheduler jobs to fail to run on these defunct workers

I have an issue Ive been looking into for a while and can't figure it out...any help is appreciated, We run redis, resque and resque-scheduler on Heroku. Many of the scheduled jobs do not get run. The /resque/failed web page shows the error…
2
votes
1 answer

Resque Scheduler sending to queue but not processing

I got resque and resque scheduler up and running on my development environment, but when I deploy to heroku it seems like the scheduler is not doing its job. It stays in delayed and never gets moved to the queue. Here is my intializer resque.rb if…
Josh
  • 589
  • 5
  • 18
1
vote
1 answer

Best practice to implement scheduled task execution with Rails?

In my Rails application users can cancel their subscription which should trigger a function that downgrades their account at their current_billing_period_end (this variable is provided by the API of the payment provider). For example a user cancels…
Dawesign
  • 643
  • 1
  • 7
  • 25
1
vote
1 answer

How to fix undefined method 'data_store' for Resque:Module

I am developing a Rails 4.2 application, When I run command: "rake resque:scheduler" I got the error [WARNING] Recurly logger has been disabled. If you wish to use it, only do so in a non-production environment and make sure …
HaiBac Do
  • 31
  • 4
1
vote
1 answer

How to connect with separate redis instance in resque rails

There are two in redis setup and their instances in my app. One for redis cache. I want that for background jobs I will use another instance. I can't find a way where i define resqu to use specific redis address.
Haseeb Ahmad
  • 7,914
  • 12
  • 55
  • 133
1
vote
1 answer

How do you schedule Resque jobs on Heroku?

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 =>…
Chloe
  • 25,162
  • 40
  • 190
  • 357
1
vote
1 answer

How do I programmatically find out the schedule of a delayed mailer job with Resque Mailer and Resque scheduler?

I am trying to display the next time an email is scheduled using any or all of the below arguments as inputs. I'm using resque, resque-scheduler and resque-mailer. For example, above are the delayed jobs as displayed in the resque web interface.…
strohy1210
  • 281
  • 3
  • 10
1
vote
1 answer

Resque Scheduler: The highlighted jobs are skipped for current environment. Production Heroku

I am trying to get my application to work in production. I have a background job set up and a static scheduler (resque and resque_scheduler). The worker and queing on localhost works without any problem. On heroku the job shows up in the…
Jan
  • 239
  • 1
  • 4
  • 17
1
vote
1 answer

Resque Worker: Objects and methods not available in worker

I have the following worker in my web app class TweetSender @queue = :tweets_queue def self.perform(tweet_id) message = Tweet.where(:status_id => 0).order(:created_at, :id).limit(1) …
Jan
  • 239
  • 1
  • 4
  • 17
1
vote
2 answers

Rails set(wait: 2.minutes) method for active job does not works

Creating an background job with the resque_scheduler gem on Redis server. class Estamps::OrderAssignment < ActiveRecord::Base after_save :enqueue_check_status def enqueue_check_status AutoRejectionJob.set(wait:…
Mahesh Mesta
  • 793
  • 1
  • 11
  • 28