Questions tagged [sidekiq-cron]

24 questions
6
votes
1 answer

How to find Sidekiq old job status by jid

I am using Sidekiq to run a background jobs for my Rails application. I want to find out status (InProgress, Completed, Failed, Dead) of the old Sidekiq job executed 10 or 15 days ago by using jid. Is there a way to find Sidekiq job status by using…
Galet
  • 5,853
  • 21
  • 82
  • 148
4
votes
1 answer

How to run sidekiq in background - what is the best approch with rails app running on Nginx

I'm using Sidekiq 6.0.1. I'm trying to run in the background, here is the command I'm using: bundle exec sidekiq -d -L log/sidekiq.log -C config/sidekiq.yml -e development This is showing ERROR: Daemonization mode was removed in Sidekiq 6.0,…
Jai Chauhan
  • 4,035
  • 3
  • 36
  • 62
3
votes
2 answers

Sidekiq/Redis queuing a job that doesn't exist

I built a simple test job for Sidekiq and added it to my schedule.yml file for Sidekiq Cron. Here's my test job: module Slack class TestJob < ApplicationJob queue_as :default def perform(*args) begin …
user11607383
3
votes
0 answers

How to update args to Sidekiq cron job after initialize in Rails

I am using sidekiq gem for process the background job and sidekiq-cron job to schedule the job at given time period. #config/schedule.yml my_first_job: cron: "*/5 * * * *" class: "HardWorker" queue: hard_worker I want to pass date (dynamic)…
Galet
  • 5,853
  • 21
  • 82
  • 148
3
votes
1 answer

Redis and Sidekiq in production on Ubuntu 16.04 using systemd and Deployment with Capistrano

I am deploying sidekiq in ubuntu 16.04 using systemd service with Capistrano. Sidekiq system service file /lib/systemd/system/sidekiq.service # # systemd unit file for CentOS 7, Ubuntu 15.04 # # Customize this file based on your bundler location,…
3
votes
1 answer

Sidekiq::Cron::Job throw me uninitialized constant Rufus::Scheduler::CronLine error

I am using Ruby on Rails 5.2.0 to develop a system and I need to run a job every 2 minute. I'm using sidekiq for background processing and sidekiq-cron for scheduling jobs. I execute the following line in rails console: job=Sidekiq::Cron::Job.new(…
2
votes
2 answers

Sidekiq starting successfully, but systemd restarts every ~1 minute anyway

Rails: 6.0.3 Sidekiq: 6.1.2 Ruby 2.7.2 Running on AWS Amazon Linux 2 I'm running a fairly simply Sidekiq configuration on production, and using the boilerplate systemd/sidekiq.service file from the examples directory in the sidekiq repo. I noticed…
D-Nice
  • 4,772
  • 14
  • 52
  • 86
2
votes
1 answer

Retry sidekiq job if it is in dead queue in rails

I want to write a cron job which fetches the sidekiq job from the dead queue and retry it, as we can do it from sidekiq's Web UI, I want to do the same through the code.
Puja Garg
  • 251
  • 3
  • 11
1
vote
0 answers

How to manage Sidekiq cron jobs with multiple workers

I want to schedule periodic jobs, and I want to deploy multiple Sidekiq processes for increased throughput. I imagine this means multiple containers running bundle exec sidekiq (or sidekiqswarm), each invoking their Sidekiq initializer when they…
Lorrin
  • 1,799
  • 1
  • 16
  • 21
1
vote
0 answers

flaky jobs on heroku using sidekiq/redis

We have been having issues with flaky jobs recently on heroku using sidekiq and redis. We are using sidekiq-cron, and whenever testing locally all our jobs execute fine and without issue on-schedule. It seems however, that we have issues with jobs…
1
vote
1 answer

Sidekiq Scheduler - Rails - Run a Worker On 2nd of every Month

Using sidekiq-scheduler, how can we schedule a worker to run 2nd of every month on a specified time? import_worker: every: '0 0 * 1 *' class: ImportWorker queue: scheduler enabled: true Will the above cron run every one month? Also how can…
Suganya Selvarajan
  • 962
  • 1
  • 11
  • 33
1
vote
1 answer

Which Queue will be used while running this job is sidekiq

Hi I am using sidekiq_cron in my rails project. Jobs classes are from ActiveJob. In my job file I have queue_as :default and in schedule.yml file I have queue: high_priority. In actual which queue will be used?
aaa
  • 31
  • 2
0
votes
1 answer

Some workers are not loaded in sidekiq job, giving NameError:uninitialized constant

I am scheduling some background jobs using sidekiq-cron. I am using config/schedule.yml file: development: daily_summary: cron: "0 4 * * *" class: "DailySummaryWorker" weekly_summary: cron: "0 3 * * 1" class:…
0
votes
1 answer

How to delete a scheduled sidekiq job, running every minutes even if all code related to this job disappeared from the code base?

I guess everything is in the title. I scheduled a job on scheduler.rb weeks ago. It was suppose to run every minutes. We are not using it anymore. I'm trying to delete it for good but it's still running on sidekiq and appears as failed since there…
0
votes
0 answers

Issues during setup crontab on server with docker

I want to setup crontab for sidekiq-cron from docker in rails. During build i was faced some issue like no crontab for root How to resolve this issue? Here are my files to setup server with docker. i want this without whenever gem. Docker…
Saad Saddique
  • 81
  • 1
  • 4
1
2