Skip to content

Commit

Permalink
commit to init GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
Jruuuu committed Aug 25, 2023
1 parent 305faeb commit 3736ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/sync_lock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def hlr_sync_lock

begin
# create the sync lock with a key, value pair only IF it doesn't already exist
# and give it an expiration time upon creation
# and give it an expiration time upon creation.
sync_lock_acquired = redis.set(lock_key, "lock is set", nx: true, ex: LOCK_TIMEOUT.to_i)

fail Caseflow::Error::SyncLockFailed, message: Time.zone.now.to_s unless sync_lock_acquired
Expand Down

0 comments on commit 3736ca6

Please sign in to comment.