Skip to content

Commit

Permalink
Merge pull request #3010 from activeloopai/v4.1.2_release
Browse files Browse the repository at this point in the history
v4.1.2 Release
  • Loading branch information
khustup2 authored Dec 31, 2024
2 parents 42c1af0 + 2098483 commit 99d1bd5
Show file tree
Hide file tree
Showing 30 changed files with 5,630 additions and 483 deletions.
18 changes: 11 additions & 7 deletions python/deeplake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def progress_bar(iterable, *args, **kwargs):
import deeplake
from ._deeplake import *

__version__ = "4.1.1"
__version__ = "4.1.2"

__all__ = [
"__version__",
Expand Down Expand Up @@ -128,9 +128,7 @@ def progress_bar(iterable, *args, **kwargs):
"types",
"Client",
"client",
"__child_atfork",
"__prepare_atfork",
"__parent_atfork",
]


Expand Down Expand Up @@ -259,7 +257,7 @@ def transfer_with_links(source, dest, links, column_names):


def __register_at_fork():
from ._deeplake import __prepare_atfork, __parent_atfork, __child_atfork
from ._deeplake import __prepare_atfork

UNSAFE_TYPES = (
Dataset,
Expand Down Expand Up @@ -300,19 +298,25 @@ def check_main_globals_for_unsafe_types():

def before_fork():
check_main_globals_for_unsafe_types()
__prepare_atfork()
pass

def after_fork_parent():
__parent_atfork()
pass

def after_fork_child():
__child_atfork()
pass

os.register_at_fork(
before=before_fork,
after_in_parent=after_fork_parent,
after_in_child=after_fork_child,
)

ff = os.fork
def fork():
__prepare_atfork()
return ff()

os.fork = fork

__register_at_fork()
Loading

0 comments on commit 99d1bd5

Please sign in to comment.