lib/qpush/server/apis/fail.rb in qpush-0.1.7 vs lib/qpush/server/apis/fail.rb in qpush-0.1.8

- old
+ new

@@ -21,10 +21,10 @@ @job.retry if @job.retry_job? @job.morgue if @job.dead_job? end def stat_increment - Server.redis { |c| c.hincrby(Server.keys.stats, 'failed', 1) } + Server.redis { |c| c.hincrby(Server.keys[:stats], 'failed', 1) } end def log_error Server.log.err("Worker #{Server.worker.id} | Job FAILED | #{@job.klass} | #{@job.id} | #{@error.message}") end