Skip to content

Commit

Permalink
local adapters and skip check memory
Browse files Browse the repository at this point in the history
  • Loading branch information
matveyvarg committed Jun 5, 2024
1 parent 16210a7 commit 08a941d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deker/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def __init__(
write_lock_check_interval: int = 1,
loglevel: str = "ERROR",
memory_limit: Union[int, str] = 0,
skip_memory_check: bool = False,
**kwargs: Any,
) -> None:
"""Deker client constructor.
Expand All @@ -209,7 +210,7 @@ def __init__(
converted into bytes. If result is ``<= 0`` - total RAM + total swap is used
.. note:: This parameter is used for early runtime break in case of potential memory overflow
:param skip_memory_check: If we don't want to check size during collection creation
:param kwargs: a wildcard, reserved for any extra parameters
"""
try:
Expand All @@ -230,6 +231,7 @@ def __init__(
write_lock_check_interval=write_lock_check_interval,
loglevel=loglevel.upper(),
memory_limit=mem_limit,
skip_memory_check=skip_memory_check,
)
self.__uri: Uri = Uri.create(self.__config.uri)
self.__is_closed: bool = True
Expand Down
1 change: 1 addition & 0 deletions deker/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class DekerConfig:
varray_data_directory: str = "varray_data"
array_symlinks_directory: str = "array_symlinks"
varray_symlinks_directory: str = "varray_symlinks"
skip_memory_check: bool = False

@property
def as_dict(self) -> dict:
Expand Down

0 comments on commit 08a941d

Please sign in to comment.