class SidekiqUniqueJobs::LockTTL
def initialize(item)
(**item)
-
:at
(Float
) -- the unix time the job is scheduled at -
:class
(String
) -- the class of the sidekiq worker -
:lock_timeout
(Integer, nil
) -- the configured lock timeout -
:lock_ttl
(Integer, nil
) -- the configured lock expiration
Parameters:
-
item
(Hash
) -- the Sidekiq job hash
def initialize(item) @item = item @worker_class = item[CLASS] end