Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sky/utils/auth_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# We intentionally not have the ssh key pair to be stored in
# ~/.sky/api_server/clients, i.e. sky.server.common.API_SERVER_CLIENT_DIR,
# because ssh key pair need to persist across API server restarts, while
# the former dir is empheral.
# the former dir is ephemeral.
_SSH_KEY_PATH_PREFIX = '~/.sky/clients/{user_hash}/ssh'


Expand Down
2 changes: 1 addition & 1 deletion sky/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
def refresh_server_id() -> None:
"""Refresh the server id.

This function is used to ensure the server id is read from the authorative
This function is used to ensure the server id is read from the authoritative
source.
"""
global SERVER_ID
Expand Down
2 changes: 1 addition & 1 deletion sky/utils/common_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ def release_memory():
gc.collect()
if sys.platform.startswith('linux'):
# Will fail on musl (alpine), but at least it works on our
# offical docker images.
# official docker images.
libc = ctypes.CDLL('libc.so.6')
return libc.malloc_trim(0)
return 0
Expand Down
2 changes: 1 addition & 1 deletion sky/utils/db/db_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def add_column_to_table_sqlalchemy(
pass
else:
raise
#postgressql
#postgresql
except sqlalchemy_exc.ProgrammingError as e:
if 'already exists' in str(e):
pass
Expand Down
2 changes: 1 addition & 1 deletion sky/utils/locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def force_unlock(self) -> None:
cursor.execute('SELECT pg_advisory_unlock(%s)', (self._lock_key,))
result = cursor.fetchone()[0]
if result:
# The lock is held by current routine and unlock suceed
# The lock is held by current routine and unlock succeed
self._connection.commit()
self._acquired = False
return
Expand Down
Loading