Sha256: 3215df43304afa7ece1baf333ad4f822bfb86b2640a404eda60168f7ecaf3a80

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

module QPush
  module Server
    module Apis
      class Morgue < Base
        def call
          send_to_morgue
        end

        private

        def send_to_morgue
          Server.redis do |conn|
            conn.hincrby(Server.keys.stats, 'dead', 1)
            conn.lpush(Server.keys.morgue, @job.to_json)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qpush-0.1.7 lib/qpush/server/apis/morgue.rb
qpush-0.1.6 lib/qpush/server/apis/morgue.rb