lib/qpush/server/apis/success.rb in qpush-0.1.7 vs lib/qpush/server/apis/success.rb in qpush-0.1.8
- old
+ new
@@ -16,10 +16,10 @@
@job.delay if @job.delay_job?
end
def stat_increment
Server.redis do |c|
- c.hincrby(Server.keys.stats, 'success', 1)
+ c.hincrby(Server.keys[:stats], 'success', 1)
end
end
def log_success
Server.log.info("Worker #{Server.worker.id} | Job SUCCESS | #{@job.klass} with ID: #{@job.id} | #{@job.run_time}")