Questions tagged [sidekiq]

Sidekiq is a background processing framework for Ruby.

Sidekiq is a multi-threaded background job and message processing gem written by Mike Perham and is available on GitHub.

2372 questions
40
votes
4 answers

Sidekiq list all jobs [queued + running]

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 other option but I want to do it this way. I can see…
aks
  • 8,796
  • 11
  • 50
  • 78
39
votes
1 answer

"SSL_read: cert already in hash table" when sending mail asynchronously

I keep getting an OpenSSL::SSL::SSLError with a message of SSL_read: cert already in hash table when sending delayed e-mails out asynchronously with ActionMailer. We use Sidekiq to send all of our e-mails out asynchronously. When posing this…
Ricky Zein
  • 557
  • 1
  • 4
  • 8
37
votes
1 answer

What is the best way to use Redis in a Multi-threaded Rails environment? (Puma / Sidekiq)

I'm using Redis in my application, both for Sidekiq queues, and for model caching. What is the best way to have a Redis connection available to my models, considering that the models that will be hitting Redis will be called both from my Web…
Daniel Magliola
  • 30,898
  • 61
  • 164
  • 243
36
votes
6 answers

Disable automatic retry with ActiveJob, used with Sidekiq

Is there a way to disable automatic retry with ActiveJob and Sidekiq ? I know that with Sidekiq only, we just have to put sidekiq_options :retry => false as mentioned here : https://github.com/mperham/sidekiq/wiki/Error-Handling#configuration but…
Jules Ivanic
  • 1,579
  • 2
  • 15
  • 28
35
votes
1 answer

Perform sidekiq job synchronously

E.g. SidekiqWorker needs to be performed immediately instead of SidekiqWorker.perform_async. How to perform (execute, run) sidekiq job (worker) synchronously (immediately, now, without a delay)?
Sergey Alekseev
  • 11,910
  • 11
  • 38
  • 53
33
votes
2 answers

How to manually run a Sidekiq job

I have an application which uses Sidekiq. The web server process will sometimes put a job on Sidekiq, but I won't necessarily have the worker running. Is there a utility which I could call from the Rails console which would pull one job off the…
Jay Godse
  • 15,163
  • 16
  • 84
  • 131
33
votes
5 answers

Rails: How to restart sidekiq?

I am using sidekiq gem to run API calls in background. I ran sidekiq in Daemon process like: bundle exec sidekiq -d Now I made some changes in my method, so I want to restart sidekiq. I tried to kill the sidekiq by using the below command: kill…
Can Can
  • 3,644
  • 5
  • 32
  • 56
32
votes
1 answer

How to start Sidekiq in RubyMine?

I'm using RubyMine 6.3. I tried to configure Sidekiq in RubyMine but I can't start it. How would I configure and start Sidekiq in RubyMine?
Kanna
  • 990
  • 1
  • 11
  • 30
32
votes
1 answer

Sidekiq not deallocating memory after workers have finished

I have about six Sidekiq worker which perform JSON crawling. Dependent on the endpoint's dataset size they finish between 1min and 4h. Especially, watching the long one, which takes 4h, I see a very slight increase of memory over time. It's not a…
31
votes
7 answers

Gracefully shutting down sidekiq processes

Does anyone know how to find sidekiq's pidfile to gracefully shut it down? Running ps ax | grep sidekiq and then running sidekiqctl stop consistently gives a no such pidfile error? Cntl-C and Cntl-D also seem to have no…
user1627827
  • 665
  • 2
  • 7
  • 9
29
votes
3 answers

Why is "❨╯°□°❩╯︵┻━┻" with such an encoding used for a method name?

I came across following method in sidekiq gem. Its just invoked from test_sidekiq.rb. def self.❨╯°□°❩╯︵┻━┻ puts "Calm down, bro" end This is the only link I was able to find on SO. Google can't understand ❨╯°□°❩╯︵┻━┻. Why doesn't Ruby complain…
saihgala
  • 5,724
  • 3
  • 34
  • 31
26
votes
1 answer

Quiet vs Stop in Sidekiq

What's the difference between stoping workers vs 'quiet' them. In the web GUI I see both options but not sure what are the differences. Also, whenever I stop all workers, do they stop gracefully meaning they are put on queue again or not? Thanks.
borjagvo
  • 1,802
  • 2
  • 20
  • 35
26
votes
5 answers

How to find Sidekiq is running or not

In one of my project i am using Sidekiq Is there any inbuilt Sidekiq console method/method that helps me to find whether sidekiq is running or not. My requirement is kind of a pre check condition where if Sidekiq is not running i will raise a error.…
AnkitG
  • 6,438
  • 7
  • 44
  • 72
25
votes
4 answers

undefined method `transform_keys' loading Sidekiq web

After updating gems, it does not load the sidekiq website giving the following error: NoMethodError (undefined method `transform_keys' for ): The gems that were updated were: selenium-webdriver…
rhugo
  • 464
  • 1
  • 5
  • 15
24
votes
1 answer

How can I get ActiveJob to enqueue jobs in Sidekiq on Heroku when called from the app (not the console)?

I'm running Rails 4.2 on Heroku (cedar), Ruby 2.1.6 I've got Sidekiq running locally on Redis with Foreman, and in my app I call Rails' new ActiveJob deliver_later methods like this, inside application_helper.rb: assigning_user =…
Jason Preston
  • 1,343
  • 1
  • 10
  • 12