Sha256: 8dc3df99431f85ee14823d46e1e02fa80658944fde8b5b3dedb4c78fa26c4072

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

module QPush
  module Server
    module Apis
      class Perform < Base
        def call
          perform_job
        end

        private

        def perform_job
          Server.redis do |conn|
            conn.hincrby(Server.keys[:stats], 'performed', 1)
            conn.lpush("#{Server.keys[:perform]}:#{@job.priority}", @job.to_json)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qpush-0.1.10 lib/qpush/server/apis/perform.rb
qpush-0.1.8 lib/qpush/server/apis/perform.rb