lib/resque/scheduler_locking.rb in resque-scheduler-2.2.0 vs lib/resque/scheduler_locking.rb in resque-scheduler-2.3.0
- old
+ new
@@ -1,6 +1,5 @@
-
# ### Locking the scheduler process
#
# There are two places in resque-scheduler that need to be synchonized
# in order to be able to run redundant scheduler processes while ensuring jobs don't
# get queued multiple times when the master process changes.
@@ -67,10 +66,10 @@
def release_master_lock!
master_lock.release!
end
- private
+ private
def build_master_lock
if supports_lua?
Resque::Scheduler::Lock::Resilient.new(master_lock_key)
else