resque-concurrent-restriction 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|