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
0
votes
0 answers

Rails 5 - resque undefined method `namespace' for main:Object

I was unable to run my rails server in development mode. I have installed two gems are resque and resque-scheduler into rails application. I have searched for the solution online but still, I was struggling with it. Gemfile: gem 'resque' gem…
Karthick
  • 433
  • 1
  • 10
  • 25
0
votes
1 answer

Pass Multiple Arguments to Resque & Resque-Scheduler

I have a Resque Worker that takes two arguments class SendPostWorker @queue = :send_post_worker def self.perform(post_id, group_id) group = Group.find(group_id.to_i) ::BotMessageDispatcher.new(group, post_id).work end end In a…
PrimeTimeTran
  • 1,807
  • 2
  • 17
  • 29
0
votes
1 answer

resque scheduler not enqueue jobs

Schedules exist to be executed at certain times as defined in the schedule, but the tasks are not executed. There is an option in the schedule to manually start that specific scheduled task and that will execute and perform the tasks. This shows…
GBD
  • 15,847
  • 2
  • 46
  • 50
0
votes
1 answer

badge_label_helper.rb is failing to load in resque jobs

We are trying to upgrade rails from 4.2 to 5.1.4 along with resque gem. But we got below results on the same. File : /lib/tasks/resque.rake require 'resque/tasks' require 'resque-scheduler' require 'resque/scheduler/server' require…
0
votes
1 answer

Resque: don't enqueue redundant jobs?

I have a set of Resque queues, arranged by priority. For all of the jobs on the lowest-priority queue, they have no arguments, and a later run will supersede any previous runs -- e.g. they are syncing data with an external service. So it makes no…
Eli Rose
  • 6,788
  • 8
  • 35
  • 55
0
votes
1 answer

Ruby on Rails resque task gets error

I'm trying to use resque in my ruby on rails application. I created resque.rake file in lib/tasks folder require 'resque/tasks' task 'resque:setup' => :environment I've started redis server by following line redis-server…
0
votes
1 answer

Setting different queue names in Resque mailer

In my rails4 application i need to send email to all users once in a week. Users belongs to different departments. I need to organize the mail sending based on the department wise queue names. But, i don't know how to give the queue name as…
jissy
  • 463
  • 5
  • 20
0
votes
1 answer

Resque schedueler loading jobs but not enqueing

I have a schedule and it is defined in the resque.rake like this: require 'resque/tasks' require 'resque/scheduler/tasks' task 'resque:setup' => :environment namespace :resque do task :setup do require 'resque' Resque.redis =…
Jan
  • 239
  • 1
  • 4
  • 17
0
votes
1 answer

How to check the status of a job while using resque scheduler in rails?

I have some jobs running in the background to execute at some pre-mentioned time periods. I am using resque-scheduler gem to queue the jobs on Redis server. While I have their Job Ids, I want to know the status of that particular job. Is there any…
Mahesh Mesta
  • 793
  • 1
  • 11
  • 28
0
votes
1 answer

Finding Resque Scheduler Jobs Programmatically

In Rails, you can easily get at the basic info of workers, jobs pending, etc. via Resque.info hash. How can you determine how many jobs are in the Resque Scheduler Delayed Jobs (one-off scheduled) tab programmatically? For example, I see 0 pending…
Michael
  • 1,786
  • 5
  • 23
  • 42
0
votes
1 answer

How to set scheduler cron times in PST for Heroku servers given they use UTC?

Since servers on Heroku run under UTC time, how do you set the cron time to run at 3am PST daily? Before you recommend the built in Heroku scheduler, I would like to keep everything inside of Resque. Also, it would be cool to leave the server time…
Chris Hough
  • 3,389
  • 3
  • 41
  • 80
0
votes
0 answers

Resque Scheduling using PHP

I am using PHP to implement scheduler. My requirement is to run a queue between 9:00AM till 9:00PM. Added jobs in queue beside that time period should not process. Below is my…
0
votes
2 answers

Does resque automatically retries failed jobs?

Or is there a config somewhere which would accept number of retries. Any inputs would be appreciated. I saw this link Restart failed jobs of a specific worker in resque and have an idea on how to retry jobs manually. I am looking for making this…
user2452057
  • 816
  • 2
  • 11
  • 23
0
votes
2 answers

Is there a way to determine whether an ActiveJob is being performed on a Resque worker or within the application?

I have an Job in my rails app that extends from ActiveJob::Base, and there are two ways that it is called: ResqueScheduler on a daily basis, where it is picked up by a Resque worker and processed Within the app via a #perform_now call, so it is…
0
votes
1 answer

Rails resque scheduler run job at specific time

I have this resque job that must run at 6 AM or 11 AM or 16 PM or 20 PM o clock or at least for example 6 am Resque.enqueue_at , SendSmsJob How do I define specific time like that? thanks
Kris MP
  • 2,305
  • 6
  • 26
  • 38