• Category Archives: Sidekiq

Adding reentrancy and a on failure fallback for your Sidekiq workers

Few months ago I’ve created a post about reentrancy: Ruby (Rails, Sinatra) background processing – Reentrancy for your workers is a must be!. In this post, I will present a nice way to implement such feature for your Sidekiq workers. Simple reentrancy Normally a Sidekiq worker looks similar to this one: and if something goes […]

Read more at the source

Running GitLab 7.1 using Puma instead of a Unicorn

Warning Warning! Before you do this, please read why you should’nt: why did gitlab 6 switch back to unicorn? So now, when let’s get started… Gemfile updates Nothing special here. Just add: and then: Puma config Create a puma.rb file in your gitlab config dir and copy/paste this: and At this point, you should be […]

Read more at the source

Tracking Sidekiq workers exceptions with Errbit/Airbrake

If you’ve set up Errbit/Airbrake and you use Sidekiq, by default you would expect, that Errbit tracks things that happen in Sidekiq workers as well. Unfortunately it doesn’t. In order to make Sidekiq retry failed jobs in needs to catch and handle exceptions on its own. And that’s the reason why you need a bit […]

Read more at the source

Multiple Sidekiq processes for multiple Rails/Sinatra applications – namespacing

Sidekiq is a great background processing tool that can be used with many applications deployed on the same server. In order to make it work without any issues or collisions, you need to define namespace for each Sidekiq process group within single application. To do so, you need to create an initializer that will contain […]

Read more at the source

Ruby (Rails, Sinatra) background processing – Reentrancy for your workers is a must be!

Background processing is a must-be in any bigger project. There’s no way to process everything in a lifetime of a single request. It’s such common, that I venture to say that each and every one of us made at least one background worker. Today I would like to tell you a bit about reentrancy. What […]

Read more at the source
close