Sha256: 8eb1d2d126ec4c8234645adc627d1079d641d4fd22d8ab1c8a49a506a3e54251
Contents?: true
Size: 392 Bytes
Versions: 2
Compression:
Stored size: 392 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.7 | lib/qpush/server/apis/perform.rb |
qpush-0.1.6 | lib/qpush/server/apis/perform.rb |