Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Sidekiq under the hood

Anton Davydov
September 26, 2015

Sidekiq under the hood

Anton Davydov

September 26, 2015
Tweet

More Decks by Anton Davydov

Other Decks in Programming

Transcript

  1. def call(worker, msg, queue) # code before call you worker

    yield rescue => e # run if your worker is failed raise e ensure # run in your worker passed or failed end
  2. def call(worker, msg, queue) # code before call you worker

    yield rescue => e # run if your worker is failed raise e ensure # run in your worker passed or failed end
  3. def call(worker, msg, queue) # code before call you worker

    yield rescue => e # run if your worker is failed raise e ensure # run in your worker passed or failed end
  4. def call(worker, msg, queue) # code before call you worker

    yield rescue => e # run if your worker is failed raise e ensure # run in your worker passed or failed end
  5. Jobs per day charts for each worker Last job status

    for each worker Passed and failed jobs count Average job time Max and min jobs time Total jobs time Last job time