Skip to content

Commit

Permalink
make methods private acquire and release
Browse files Browse the repository at this point in the history
  • Loading branch information
noah-paige committed Jun 27, 2024
1 parent 59752d7 commit 9e2e569
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ def acquire_lock_with_retry(
retries_remaining = MAX_RETRIES
log.info(f'Attempting to acquire lock for resources {resources} by share {acquired_by_uri}...')
while not (
lock_acquired := ResourceLockRepository._acquire_locks(resources, session, acquired_by_uri, acquired_by_type)
lock_acquired := ResourceLockRepository._acquire_locks(
resources, session, acquired_by_uri, acquired_by_type
)
):
log.info(
f'Lock for one or more resources {resources} already acquired. Retrying in {RETRY_INTERVAL} seconds...'
Expand Down

0 comments on commit 9e2e569

Please sign in to comment.