sidekiq Questions

2

Solved

In the sidekiq documentation, there is this quote about preferring to use /app/lib instead of /lib in Rails projects related to autoloading errors: A lib/ directory will only cause pain. Move the ...
Horary asked 11/9, 2018 at 20:53

5

Solved

I'm trying to use Sidekiq to run the below job. The job performs fine when not queued (perform_now) but fails when called as (perform_later), which uses Sidekiq. AddEmployeesToRoomJob.perform_no...
Dilate asked 20/8, 2016 at 15:20

3

Solved

I am trying to create queues with variable queue names. queue_name = "guide_" + guide['id'].to_s Sidekiq::Client.push({ 'class' => GuidePdfWorker, 'queue' => queue_name, 'args' => [ke...
Biotechnology asked 21/11, 2013 at 22:33

12

Solved

I got error NOAUTH Authentication required when I connect to Redis server via command: redis-cli and run ping to check if Redis is working. I found answer for NOAUTH Authentication required error ...
Ebon asked 6/12, 2015 at 7:48

10

Solved

I am using sidekiq in my rails application. By Default, Sidekiq can be accessed by anybody by appending "/sidekiq" after the url. I want to password protect / authenticate only the sidekiq part. Ho...
Filariasis asked 4/9, 2012 at 14:16

5

Is there a way to get a list of all the jobs currently in the queue and running? Basically, I want to know if a job of given class is already there, I don't want to insert my other job. I've seen o...
Autocracy asked 19/1, 2018 at 20:5

3

I realize there is a push_bulk option for sidekiq but I'm currently being limited by latency to redis, so passing multiple items via push_bulk still isn't going quickly enough (only about 50/s). I...
Pomander asked 18/12, 2013 at 21:25

2

Is it possible to move sidekiq job straight to dead queue from SidekiqWorker instance level (i.e. while executing) class MyWorker include Sidekiq::Worker sidekiq_options retry: 9 def perform(n...
Bainbrudge asked 27/11, 2015 at 11:34

2

Solved

I am using Sidekiq for some of my background processes. Currently what I do is: start bundle exec rails s on one terminal and then start bundle exec sidekiq on a different terminal so that the s...
Urgency asked 9/10, 2012 at 4:47

3

I am using redis version 6.0 and gem 'sidekiq', '>= 6.4.1' gem 'sidekiq-cron', '~> 1.2' for job scheduling in rails. I am using corn job to process email daily. [. My ruby version is 2.7, rai...
Vagina asked 21/2, 2022 at 16:10

5

Is there a way to get the retry count for the current job? I want the job to stop, not crash, after x retries. I would like to ask the retry count in the perform method so I could simply return if...
Auricular asked 14/4, 2014 at 16:40

5

Solved

I have a background job that does a map/reduce job on MongoDB. When the user sends in more data to the document, it kicks of the background job that runs on the document. If the user sends in multi...
Drudgery asked 5/2, 2013 at 17:39

2

Solved

I am trying to send an alert every time retry_count of a sidekiq job reaches 5(to warn an engineer to check why the worker is failing) and then continued being retried as usual. Is there a way to ...
Prohibit asked 10/7, 2015 at 19:10

13

Solved

What possible reasons can Sidekiq prevent from processing jobs in the queue? The queue is full. The log file sidekiq.log indicates no activity at all. Thus the queue is full but the log is empty, a...
Satirize asked 30/5, 2013 at 12:19

3

So I need to stop a running Job in Sidekiq (3.1.2) programmatically, not a scheduled one. I did read the API documentation but didn't really find anything about cancelling running jobs. Is this pos...
Hamblin asked 17/9, 2014 at 11:45

1

Solved

What is the difference between a worker and a job in the sidekiq context? I was looking and I didn't really find a clear answer. Are they just the same?
Flatways asked 24/4, 2023 at 18:52

1

Solved

I have set up a rails application in docker using cloud sql in GCP. Im now adding a Memorystore Redis along with Action Cable and also Sidekiq. GCP Memorystore redis does not support the client com...

3

Solved

I'm working with sidekiq and redis. I'm trying to find out and debug some issues but for that, I'd like to know what URL sidekiq is connecting to. I know i can check it in the file where i set my s...
Misdeal asked 4/3, 2013 at 23:28

3

Solved

I want to set timeout for jobs, meaning when a job has process time greater than timeout then that job will stop. I have searched how to set global timeout config in file sidekiq.yml. But I want to...
Hardner asked 18/2, 2016 at 6:40

3

Solved

I have jobs of a particular type that I'd like to have retry more frequently than set by the default Sidekiq interval. Is this currently possible? Ideally the job would retry every 5 seconds for up...
Education asked 26/12, 2013 at 17:3

2

Solved

I've two Rails application running on two different instance(lets say Server1 and Server2) but they have similar codes and shares the same Postgresql DB. I installed Sidekiq and pushing the jobs i...
Quarto asked 24/12, 2015 at 10:3

3

I've got an application that after each deploy needs to kill specific Sidekiq worker. As it's api suggests I can do it by removing all jobs from queue Sidekiq::Queue.new.clear. However, after runn...
Ade asked 1/2, 2016 at 8:43

1

I have a ruby on rails app, where we validate records from huge excel files(200k records) in background via sidekiq. We also use docker and hence a separate container for sidekiq. When the sidekiq ...
Coterminous asked 5/1, 2018 at 14:47

4

Solved

I'm trying to log the progress of my sideqik worker using tail -f log/development.log in development and heroku logs in production. However, everything inside the worker and everything called by t...
Doorstop asked 12/7, 2013 at 1:32

5

I've this worker that runs for ever. class Worker include Sidekiq::Worker sidekiq_options queue: "infinity", retry: true def perform(params) # ... self.class.perform_in(30.seconds, params) ...
Hylophagous asked 17/4, 2014 at 21:27

© 2022 - 2025 — McMap. All rights reserved.