Sha256: 02792bf19d3c59764d0d9cf47edcb0dbfa5153509a1925d5dd7ffe4a713544a3
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
module QPush module Server module Apis class Perform < Base def initialize(job) @job = job end def call perform_job end private def perform_job QPush.redis.with do |conn| conn.hincrby(QPush.keys.stats, 'performed', 1) conn.lpush("#{QPush.keys.perform}:#{@job.priority}", @job.to_json) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qpush-0.1.4 | lib/qpush/server/apis/perform.rb |