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"
…
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…
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…
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…
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…
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…
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…
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…
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
…
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.
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 =>…
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.…
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…
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)
…
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:…