resque-concurrent-restriction 0.5.6 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -351,13 +351,10 @@ module Resque
|
|
351
351
|
|
352
352
|
tries.times do
|
353
353
|
lock_expiration = Time.now.to_i + ConcurrentRestriction.lock_timeout
|
354
|
-
p [Time.now.to_f, Process.pid, :start]
|
355
354
|
if acquire_lock(lock_key, lock_expiration)
|
356
|
-
p [Time.now.to_f, Process.pid, :acquired]
|
357
355
|
acquired_lock = true
|
358
356
|
begin
|
359
357
|
yield
|
360
|
-
p [Time.now.to_f, Process.pid, :end]
|
361
358
|
ensure
|
362
359
|
release_lock(lock_key, lock_expiration)
|
363
360
|
end
|