1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Rename constant, fixes #191

This commit is contained in:
Mike Perham 2012-05-12 13:32:16 -07:00
parent 847a6dbde8
commit 7c3be2d81b
2 changed files with 3 additions and 3 deletions

View file

@ -55,9 +55,9 @@ module Sidekiq
redis do |conn|
conn.multi do
conn.sadd('workers', self)
conn.setex("worker:#{self}:started", DEFAULT_EXPIRY, Time.now.to_s)
conn.setex("worker:#{self}:started", EXPIRY, Time.now.to_s)
hash = {:queue => queue, :payload => msg, :run_at => Time.now.strftime("%Y/%m/%d %H:%M:%S %Z")}
conn.setex("worker:#{self}", DEFAULT_EXPIRY, Sidekiq.dump_json(hash))
conn.setex("worker:#{self}", EXPIRY, Sidekiq.dump_json(hash))
end
end

View file

@ -7,7 +7,7 @@ module Sidekiq
#
module Util
DEFAULT_EXPIRY = 24 * 60 * 60
EXPIRY = 24 * 60 * 60
class Pretty < Logger::Formatter
# Provide a call() method that returns the formatted message.