Skip to content

Commit

Permalink
add comment for keeping decorator order
Browse files Browse the repository at this point in the history
  • Loading branch information
landscapepainter committed Jul 17, 2024
1 parent beba84a commit 55a5e72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sky/adaptors/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def exceptions():
return azure_exceptions


# We should keep the order of the decorators having 'lru_cache' followed
# by 'load_lazy_modules' as we need to make sure a caller can call
# 'get_client.cache_clear', which is a function provided by 'lru_cache'
@functools.lru_cache()
@common.load_lazy_modules(modules=_LAZY_MODULES)
def get_client(name: str,
Expand Down

0 comments on commit 55a5e72

Please sign in to comment.