Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 625179587
  • Loading branch information
niketkumar authored and Orbax Authors committed Apr 16, 2024
1 parent a174452 commit b8956cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions checkpoint/orbax/checkpoint/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,10 +816,7 @@ async def _async_is_locked(directory: epath.Path) -> bool:
parent_dir_exists = await async_exists(directory)
if not parent_dir_exists:
raise ValueError(f'Parent directory {directory} does not exist.')
locked = await async_exists(lockdir(directory))
# TODO(b/333840560): Revert logging.
logging.info('step_name=%s, locked=%s', directory.name, locked)
return locked
return await async_exists(lockdir(directory))


def is_locked(directory: epath.Path) -> bool:
Expand Down

0 comments on commit b8956cd

Please sign in to comment.