Skip to content

Instantly share code, notes, and snippets.

class JobCounter
sidekiq_options queue: :job_counter
def perform(id)
Rails.logger.info "Performing #{id}"
Redis.current.srem 'job_counter.jobs', id
Redis.current.incr "job_counter.jobs_performed"
end

Keybase proof

I hereby claim:

  • I am sanjayprabhu on github.
  • I am sanjayprabhu (https://keybase.io/sanjayprabhu) on keybase.
  • I have a public key whose fingerprint is BCB5 0B8A 1EEB A89F 62DE 2734 196D 5552 62AF 1DF2

To claim this, I am signing this object: