Questions tagged [sidetiq]

Sidetiq provides a simple API for defining recurring workers for Sidekiq.

Sidetiq provides a simple API for defining recurring workers for Sidekiq.

  • Concurrency and fault-tolerance using Celluloid actors.

  • Flexible DSL based on ice_cube.

  • Distributed, Redis-based locking to synchronize multiple Sidetiq processes.

  • Web extension with extensive monitoring of recurring jobs.

  • Sidetiq runs in your Sidekiq processes. No extra resources required.

Official repository: https://github.com/tobiassvn/sidetiq

23 questions
7
votes
3 answers

How to Wait for Parallel Sidekiq Workers to All Complete Before Calling Another Method?

I have several workers that are being run using Sidekiq and scheduled using Sidetiq. I'm looking for advice on the best way to wait for all workers to complete before executing a callback, similar to Sidekiq-Pro's batching functionality. Any advice…
AvocadoRivalry
  • 411
  • 1
  • 7
  • 16
4
votes
2 answers

Sidekiq + Sidetiq recurrence every 2 hours?

I can't exactly find how to set my recurrence rule to initiate the job every 2 hours. Currently I have my job to run at 3am every day (I think) using something like this in my Sidekiq worker class: recurrence do daily.hour_of_day(3) end What's…
randombits
  • 47,058
  • 76
  • 251
  • 433
3
votes
2 answers

Sidekiq fails, dequeueing mongoid connection times out, probably too many connections

I am currently running sidekiq 4.1.2. I've never managed to be able to run more than a handfull of jobs concurrently. Recently it's been looking like I've run into an issue described in the Sidekiq's Troubleshooting WIKI called Too many connections…
Cjoerg
  • 1,271
  • 3
  • 21
  • 63
2
votes
0 answers

Cron parameter in not working in sidekiq rails

I have been implemented sidekiq-cron in my rails application. I want to run scheduled task using this gem. Here is yml file config/schedule.yml : message_worker: class: MessageWorker queue: default cron: "* * * * * *" Here is my worker…
Ajinath Jedhe
  • 152
  • 2
  • 15
2
votes
1 answer

Sidekiq worker enqueues but doesn't complete when paired with Sidetiq

I have a Sidekiq worker that syncs the data of a Rails 3.2 application with a remote database. When I just execute it from the rails console, everything works as expected. I can verify that it connects to the remote DB and pulls in the data I am…
Robert
  • 51
  • 6
2
votes
1 answer

Stop Sidekiq recurring jobs

I'm using Sidetiq and Sidekiq together to recurring jobs : include Sidekiq::Worker include Sidetiq::Schedulable recurrence { secondly(3) } def perform(id,last_occurrence) # magic happens end However, now I want to stop the entire…
Hoseong Son
  • 247
  • 4
  • 18
1
vote
1 answer

Sidekiq Worker: Mysql2::Error: Access denied for user 'mysqluser'@'ip-address' (using password: NO)

I have a Sidekiq worker scheduled everyday at 1200 hours using Sidetiq's recurrence option and when this worker starts, I always end up with the worker connecting to the wrong address to connect to wrong database server whose IP is not present in my…
Sana
  • 9,895
  • 15
  • 59
  • 87
1
vote
1 answer

Sidekiq UI : Internal Server Error production

I am trying to run Sidekiq UI in production mode, though the workers are running fine but sometimes they crash and hence I wanted to look at the UI to either restart them or see whats the issue. This only is a problem in production mode, the dev…
Sana
  • 9,895
  • 15
  • 59
  • 87
1
vote
0 answers

Sidetiq Perform Params Missing

How do I pass sidetiq params. When I call perform it complains the params are missing. How does sidetiq set those two params? def perform(last_occurrence, current_occurrence) https://github.com/tobiassvn/sidetiq/wiki/Basic-Usage
Natus Drew
  • 1,876
  • 1
  • 21
  • 23
1
vote
1 answer

How to make Sidetiq tasks to run only in production?

We are using Sidekiq as our queue management system and Sidetiq to manage scheduled recurring tasks and it works quite well for us. There is a slight issue through. There are tasks that we don't want to be run every time we start sidekiq queue…
Vitali
  • 690
  • 9
  • 29
1
vote
0 answers

sidetiq implement operation every half second

I have a job, which should be implemented every 500ms. But, as I see, the smallest timeout is 1 second. How can I decrease this limit? Is there any functionality like this: class MyWorker include Sidekiq::Worker include Sidetiq::Schedulable …
Alex Antonov
  • 14,134
  • 7
  • 65
  • 142
1
vote
0 answers

Prevent Sidetiq from scheduling new jobs based on {add logic here}

We would like to stop Sidetiq from scheduling new jobs based on some condition. In our use case, that there are no newer versions of the code running in another deployment/container) How can we add logic at the point Sidetiq is scheduling the job…
1
vote
1 answer

How to stop Sidetiq adding schedule job

I am using Sidetiq (https://github.com/tobiassvn/sidetiq) for schedule a frequent recurring job (every minute). When I am testing in my local environment, even when I stop Sidekiq from executing, Sidetiq keeps adding new jobs to the scheduled jobs.…
johnny
  • 13
  • 3
1
vote
1 answer

Sidekiq tries to run in test environment

I have a very strange issue: Sidekiq tries to establish connection to Redis in test environment. I'm using sidekiq 3.2.2 with rspec-sidekiq 2.0.0.beta on rails 4.1.4 with ruby 2.1.2 Here is my test require 'rails_helper' describe…
retgoat
  • 2,414
  • 1
  • 16
  • 21
1
vote
1 answer

Sidetiq testing with TimeCop

I'm trying to write some test for my Sidekiq jobs that use Sidetiq and I can't seem to get it to work. I've found an issue on the sidetiq repo dealing with this problem but no one has answered it so I thought I could bring it to stackoverflow to get…
meatherly
  • 1,741
  • 2
  • 13
  • 16
1
2