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
14
votes
2 answers

Best way to find a job anywhere in Sidekiq

Is there an easy way to search through all of sidekiq (queues, retries, schedules, etc) for a specific job? Currently I'm doing this: if !Sidekiq::Queue.new("feeds").find {|j| j.args[0] == feed.id && j.args[1] == true } if…
Farski
  • 1,670
  • 3
  • 15
  • 30
14
votes
1 answer

How to start Sidekiq worker on Ubuntu VPS (Digitalocean)

I already setup Redis, Sidekiq and Rails app, I can access it form //url/sidekiq, but how do I start the Sidekiq worker on a VPS? On my local I do: bundle exec sidekiq -q carrierwave,5 default What should I do on a VPS hosting? Thanks
user1883793
  • 4,011
  • 11
  • 36
  • 65
14
votes
2 answers

GitLab email notifications not sending

I just recently install GitLab v5.0 on an Ubuntu 12.04 server and am now having issues with email notifications. I can't get GitLab to send any emails of any kind. I've got my config/environments/production.rb file setup to use sendmail as the…
sadmicrowave
  • 39,964
  • 34
  • 108
  • 180
14
votes
3 answers

Ruby on Rails + Sidekiq: How do I change a scheduled job start time?

I started working with Sidekiq recently and noticed that it has an awesome feature that I've been searching for a long time: UserMailer.delay_until(5.days.from_now).find_more_friends_email Basically I can schedule a job in the future so I don't…
Oktav
  • 2,143
  • 2
  • 20
  • 33
14
votes
0 answers

Resque vs. Sidekiq

I'm working on a project with a friend where we've been using Resque for processing various commands from data input inside our rails application on a minute to minute basis. We've been messing around with the idea of using Sidekiq because it is…
James Newton
  • 402
  • 4
  • 14
13
votes
2 answers

Find the list of failed Sidekiq jobs with their arguments

I am using Sidekiq for job management with a Rails APP. I would like to know how do you get the arguments of the failed jobs (Ids, Objects, error message, etc...)? On the WebUI, all you get is the nr of failed jobs. And if I understand correctly,…
Yann
  • 151
  • 1
  • 1
  • 8
13
votes
2 answers

How to put sidekiq into Docker in a rails application?

I am using rails, sidekiq and docker. My docker-compose.yml file sidekiq: build: . command: bundle exec sidekiq -C config/sidekiq.yml links: - db - redis config/sidekiq.yml file :pidfile: ./tmp/pids/sidekiq.pid :logfile:…
scho
  • 3,275
  • 6
  • 19
  • 30
13
votes
3 answers

Pry like debugger for Sidekiq?

I've tried pry and remote-pry, but no luck. I'm familiar with logging, but I want to be able to step thru my code and look at variables. Does anyone know of anything I can use to debug Sidekiq?
ToddT
  • 3,084
  • 4
  • 39
  • 83
13
votes
2 answers

How to find failed jobs list in sidekiq?

I am using sidekiq in rails4. How can I find failed jobs list and reprocesses them to perform in sidekiq?
Debadatt
  • 5,935
  • 4
  • 27
  • 40
13
votes
1 answer

What's the meaning of the last part of a redis url?

A redis url may look like this: redis://redis.example.com:7372/12 It is the schema part: 'redis://', hostname: redis.example.com port: 7372 What does the number '12' mean at the last part?
canoe
  • 1,273
  • 13
  • 29
13
votes
4 answers

Sidekiq: Ensure all jobs on the queue are unique

I have some update triggers which push jobs onto the Sidekiq queue. So in some cases, there can be multiple jobs to process the same object. There are a couple of uniqueness plugins ("Middleware", Unique Jobs), they're not documented much, but they…
mahemoff
  • 44,526
  • 36
  • 160
  • 222
13
votes
2 answers

How can I run a continuous background job with Sidekiq?

I have been using Sidekiq successfully to run background jobs that are initiated by user actions in a Rails 3.2 application. My particular application involves sending and receiving data from and external source via a third party API. I need to keep…
RubyRedGrapefruit
  • 12,066
  • 16
  • 92
  • 193
13
votes
2 answers

sidekiq to cancel list to scheduled jobs

I have several scheduled jobs running like this: MyWorker.perform_at(3.hours.from_now, 'mike', 1) I am wondering, if later, say an hour later, I feel like I want to cancel this job, how would I go about doing that?
0xSina
  • 20,973
  • 34
  • 136
  • 253
12
votes
1 answer

Why use /app/lib instead of /lib in Rails?

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 code to app/lib/ and make sure the code inside…
klementine
  • 300
  • 5
  • 12
12
votes
2 answers

rails + docker + sidekiq + Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)

I am getting this error while running my rails app with docker and docker-compose Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED) Please find my Docker file # Copy the Gemfile as well as the Gemfile.lock and install # the RubyGems.…
Rahul Ojha
  • 396
  • 1
  • 4
  • 11