Sha256: 3e0e03e280a2931fd1a7d8854befdc3274f5804b7e11fddc4a55c9c67dfbcbfb
Contents?: true
Size: 412 Bytes
Versions: 2
Compression:
Stored size: 412 Bytes
Contents
module Sidetiq module Actor def self.included(base) base.__send__(:include, Celluloid) base.finalizer :sidetiq_finalizer end def initialize(*args, &block) log_call "initialize" super end private def sidetiq_finalizer log_call "shutting down ..." end def log_call(call) info "#{self.class.name} id: #{object_id} #{call}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidetiq-0.7.2 | lib/sidetiq/actor.rb |
sidetiq-0.7.1 | lib/sidetiq/actor.rb |