Questions tagged [sidekiq-cron]
24 questions
0
votes
1 answer
How to call sidekiq perform fuction after every five minutes in rails
require 'sidekiq'
module KYC
module VerifyInvestor
class AccreditedVerificationWorker
include Sidekiq::Worker
def perform()
....
end
end
end
end
0
votes
0 answers
Delete automatically post with sidekiq-cron
I'm trying to do a cron (with sidekiq-con) on rails to delete all videos uploaded by a user every 20 minutes.
Here is my code:
sidekiq.rb :
Sidekiq.configure_server do |config|
schedule_file = "config/schedule.yml"
if…

k1ra444
- 1
0
votes
1 answer
Sidekiq-cron doesn't work without ssh to production server
I have app on Ruby on Rails. It has email mailing. After deploy my sidekiq-cron doesn't send email. Worker doesn't start a job. It works only when i connect to server on ssh. Can anyone help me? Sidekiq-cron works localy.
I use
grep sidekiq…

Oleg Bakumenko
- 1
- 1
0
votes
0 answers
Creating crob jobs dynamically in rails
I want to create a cron job in my rails application.
for example:
def job(message)
send_message_to_someother_service(message)
end
This job will take input parameters and run against a cron expression.
Now I will be sending requests to my rails…

Kaushik Vijayakumar
- 755
- 3
- 10
- 19
0
votes
1 answer
How can we implement Cron Job using sidekiq-cron on heroku for production
config/schedule.yml
my_first_job:
cron: "*/5 * * * *"
class: "HardWorker"
queue: hard_worker
second_job:
cron: "*/30 * * * *" # execute at every 30 minutes
class: "HardWorker"
queue: hard_worker_long
args:
hard: "stuff"

Deepak Kumar
- 41
- 3
0
votes
1 answer
How to enforce the cron job to run on PST time in rails?
I want to schedule a cron Job to run on 5 AM PST to 8 PM PST? I just want to know how to enforce my job to be run on PST?. I am new to this cron Job.
// code
cron: "0 5-20 * * *"

selvi
- 1,271
- 2
- 21
- 41
0
votes
1 answer
Unable to perform Enqueue now in sidekiq-cron UI after authentication
I am using sidekiq gem to process the background jobs and sidekiq-cron to schedule the jobs at certain time interval.
In config/routes.rb, I have added the following to provide authentication to sidekiq UI endpoint.
authentication = ->req {…

Galet
- 5,853
- 21
- 82
- 148
0
votes
1 answer
Getting 'Forbidden' on clicking 'Enqueue now'
Getting 'Forbidden' on clicking 'Enqueue now' in staging and production environment.
Using 'rails', '5.1.6', sidekiq-cron (1.0.4) which uses fugit (~> 1.1) and sidekiq (>= 4.2.1)
I can see from sidekiq-cron issue 60 and sidekiq-cron issue 61 that…

Mayuresh Srivastava
- 1,332
- 17
- 24
0
votes
1 answer
configure sidekiq queues to display in descending order
We have list of queues in our sidekiq dashboard , Is there any way to configure the queue to be displayed in descending order if the queue size get increased .
Say for example , I have 100 sidekiq queues listed in the dashboard , if one of the…

Karthikraj
- 7
- 4