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:
parent
847a6dbde8
commit
7c3be2d81b
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue