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…
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…
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…
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…
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…
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…
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…
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 =…
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…
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…
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…
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…
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…
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…
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