xoscar 0.4.5__cp39-cp39-macosx_10_9_universal2.whl → 0.4.6__cp39-cp39-macosx_10_9_universal2.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of xoscar might be problematic. Click here for more details.
- xoscar/_utils.cpython-39-darwin.so +0 -0
- xoscar/backends/indigen/pool.py +16 -0
- xoscar/backends/message.cpython-39-darwin.so +0 -0
- xoscar/backends/pool.py +1 -1
- xoscar/context.cpython-39-darwin.so +0 -0
- xoscar/core.cpython-39-darwin.so +0 -0
- xoscar/serialization/core.cpython-39-darwin.so +0 -0
- {xoscar-0.4.5.dist-info → xoscar-0.4.6.dist-info}/METADATA +1 -1
- {xoscar-0.4.5.dist-info → xoscar-0.4.6.dist-info}/RECORD +11 -11
- {xoscar-0.4.5.dist-info → xoscar-0.4.6.dist-info}/WHEEL +0 -0
- {xoscar-0.4.5.dist-info → xoscar-0.4.6.dist-info}/top_level.txt +0 -0
|
Binary file
|
xoscar/backends/indigen/pool.py
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
from __future__ import annotations
|
|
17
17
|
|
|
18
18
|
import asyncio
|
|
19
|
+
import atexit
|
|
19
20
|
import concurrent.futures as futures
|
|
20
21
|
import configparser
|
|
21
22
|
import contextlib
|
|
@@ -29,6 +30,7 @@ import sys
|
|
|
29
30
|
import threading
|
|
30
31
|
import uuid
|
|
31
32
|
from dataclasses import dataclass
|
|
33
|
+
from multiprocessing import util
|
|
32
34
|
from types import TracebackType
|
|
33
35
|
from typing import List, Optional
|
|
34
36
|
|
|
@@ -79,6 +81,19 @@ logger = logging.getLogger(__name__)
|
|
|
79
81
|
_init_main_suspended_local = threading.local()
|
|
80
82
|
|
|
81
83
|
|
|
84
|
+
def _terminate_children():
|
|
85
|
+
for c in multiprocessing.active_children():
|
|
86
|
+
try:
|
|
87
|
+
c.terminate()
|
|
88
|
+
except Exception:
|
|
89
|
+
pass
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
if util:
|
|
93
|
+
# Import multiprocessing.util to register _exit_function at exit.
|
|
94
|
+
atexit.register(_terminate_children)
|
|
95
|
+
|
|
96
|
+
|
|
82
97
|
def _patch_spawn_get_preparation_data():
|
|
83
98
|
try:
|
|
84
99
|
from multiprocessing import spawn as mp_spawn
|
|
@@ -309,6 +324,7 @@ class MainActorPool(MainActorPoolBase):
|
|
|
309
324
|
raise
|
|
310
325
|
finally:
|
|
311
326
|
status_queue.put(process_status)
|
|
327
|
+
status_queue.cancel_join_thread()
|
|
312
328
|
await pool.join()
|
|
313
329
|
|
|
314
330
|
async def append_sub_pool(
|
|
Binary file
|
xoscar/backends/pool.py
CHANGED
|
@@ -377,7 +377,7 @@ class AbstractActorPool(ABC):
|
|
|
377
377
|
try:
|
|
378
378
|
await channel.send(result)
|
|
379
379
|
except (ChannelClosed, ConnectionResetError):
|
|
380
|
-
if not self._stopped.is_set():
|
|
380
|
+
if not self._stopped.is_set() and not channel.closed:
|
|
381
381
|
raise
|
|
382
382
|
except Exception as ex:
|
|
383
383
|
logger.exception(
|
|
Binary file
|
xoscar/core.cpython-39-darwin.so
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
xoscar-0.4.
|
|
2
|
-
xoscar-0.4.
|
|
3
|
-
xoscar-0.4.
|
|
4
|
-
xoscar-0.4.
|
|
1
|
+
xoscar-0.4.6.dist-info/RECORD,,
|
|
2
|
+
xoscar-0.4.6.dist-info/WHEEL,sha256=Kpi8Y7ETJ76qV_mhWFgtod7iK9qT4KSd2dlvMqnPXEY,113
|
|
3
|
+
xoscar-0.4.6.dist-info/top_level.txt,sha256=vYlqqY4Nys8Thm1hePIuUv8eQePdULVWMmt7lXtX_ZA,21
|
|
4
|
+
xoscar-0.4.6.dist-info/METADATA,sha256=mDlEVxaFePvqmKl3aoY9-bymXVVOYdX_Tw4S6qgSzso,9042
|
|
5
5
|
xoscar/_utils.pyx,sha256=UR1FtYXAYKIdEWR9HulEpMbSOrkQWi6xGz63d4IQmG0,7059
|
|
6
6
|
xoscar/backend.py,sha256=is436OPkZfSpQXaoqTRVta5eoye_pp45RFgCstAk2hU,1850
|
|
7
7
|
xoscar/core.pxd,sha256=4lBq8J0kjcXcsGuvN7Kv4xcL5liHwTTFWlqyK7XAEnw,1280
|
|
@@ -12,18 +12,18 @@ xoscar/nvutils.py,sha256=qmW4mKLU0WB2yCs198ccQOgLL02zB7Fsa-AotO3NOmg,20412
|
|
|
12
12
|
xoscar/constants.py,sha256=QHHSREw6uWBBjQDCFqlNfTvBZgniJPGy42KSIsR8Fqw,787
|
|
13
13
|
xoscar/__init__.py,sha256=0zX8kKaio3ZIrlzB79WybcravMJw1OxPWjDspTgJFyQ,1608
|
|
14
14
|
xoscar/api.py,sha256=3hztPoOxg8A_mlhWyWgVP7FMXG0PATA1TP4Rbaj7A-g,13327
|
|
15
|
-
xoscar/core.cpython-39-darwin.so,sha256=
|
|
15
|
+
xoscar/core.cpython-39-darwin.so,sha256=o0KETr7TLfZHf73CvBJLFhVw8vqfNPUyzNLAdMbiOb8,899936
|
|
16
16
|
xoscar/utils.py,sha256=jUw6OICZUPBbmS1b3GE4vLctJf6fCKXrYtLtBuK-Oqc,16483
|
|
17
17
|
xoscar/debug.py,sha256=9Z8SgE2WaKYQcyDo-5-DxEJQ533v7kWjrvCd28pSx3E,5069
|
|
18
18
|
xoscar/libcpp.pxd,sha256=DJqBxLFOKL4iRr9Kale5UH3rbvPRD1x5bTSOPHFpz9I,1147
|
|
19
19
|
xoscar/context.pyx,sha256=8CdgPnWcE9eOp3N600WgDQ03MCi8P73eUOGcfV7Zksg,10942
|
|
20
20
|
xoscar/errors.py,sha256=wBlQOKsXf0Fc4skN39tDie0YZT-VIAuLNRgoDl2pZcA,1241
|
|
21
|
-
xoscar/_utils.cpython-39-darwin.so,sha256=
|
|
21
|
+
xoscar/_utils.cpython-39-darwin.so,sha256=234ra6wGVeO1syJFBq0mvhdJ2y-DtVbkVPCzogLzhpI,348016
|
|
22
22
|
xoscar/core.pyx,sha256=Aqc2i8Fetsd5wRAPF4kL0ddnBZn3E2HRNCvup79BbQc,21730
|
|
23
23
|
xoscar/driver.py,sha256=498fowtJr6b3FE8FIOA_Tc1Vwx88nfZw7p0FxrML0h4,1372
|
|
24
24
|
xoscar/profiling.py,sha256=BC5OF0HzSaXv8V7w-y-B8r5gV5DgxHFoTEIF6jCMioQ,8015
|
|
25
25
|
xoscar/_utils.pxd,sha256=5KYAL3jfPdejsHnrGGT2s--ZUX5SXznQWpHVSno429k,1157
|
|
26
|
-
xoscar/context.cpython-39-darwin.so,sha256=
|
|
26
|
+
xoscar/context.cpython-39-darwin.so,sha256=EXfHjlwHuTNON-xm1834csK-Jt3H9IimAD7q4tgvfy0,439376
|
|
27
27
|
xoscar/metrics/__init__.py,sha256=9Badi7rxYikGm2dQiNCrj9GgMRBxwuR3JaEKcFZmfak,705
|
|
28
28
|
xoscar/metrics/api.py,sha256=BBlMIFvVAGVfrtpeJ1YlH9Tqhy9OzGavwvGyeHcQ0Tk,8856
|
|
29
29
|
xoscar/metrics/backends/__init__.py,sha256=h_JgzSqV5lP6vQ6XX_17kE4IY4BRnvKta_7VLQAL1ms,581
|
|
@@ -43,12 +43,12 @@ xoscar/serialization/pyfury.py,sha256=sifOnVMYoS82PzZEkzkfxesmMHei23k5UAUUKUyoOY
|
|
|
43
43
|
xoscar/serialization/core.pxd,sha256=k4RoJgX5E5LGs4jdCQ7vvcn26MabXbrWoWhkO49X6YI,985
|
|
44
44
|
xoscar/serialization/__init__.py,sha256=5Y_C3cYbQJIZ09LRjeCf-jrkLma7mfN8I5bznHrdsbg,846
|
|
45
45
|
xoscar/serialization/numpy.py,sha256=5Kem87CvpJmzUMp3QHk4WeHU30FoQWTJJP2SwIcaQG0,2919
|
|
46
|
-
xoscar/serialization/core.cpython-39-darwin.so,sha256=
|
|
46
|
+
xoscar/serialization/core.cpython-39-darwin.so,sha256=yXJS1JovyYY8ZEEbQI4p6TOrlVWihYoENdXv354UD48,804816
|
|
47
47
|
xoscar/serialization/cuda.py,sha256=iFUEnN4SiquBIhyieyOrfw3TnKnW-tU_vYgqOxO_DrA,3758
|
|
48
48
|
xoscar/serialization/scipy.py,sha256=yOEi0NB8cqQ6e2UnCZ1w006RsB7T725tIL-DM_hNcsU,2482
|
|
49
49
|
xoscar/serialization/aio.py,sha256=5DySPgDxU43ec7_5Ct44-Oqt7YNSJBfuf8VdQgQlChA,4731
|
|
50
50
|
xoscar/serialization/core.pyx,sha256=bjR-zXGm9qersk7kYPzpjpMIxDl_Auur4BCubRfKmfA,29626
|
|
51
|
-
xoscar/backends/message.cpython-39-darwin.so,sha256=
|
|
51
|
+
xoscar/backends/message.cpython-39-darwin.so,sha256=l7CeeH9mYWUGLjWpQlLg9LuYDaGkw0xK64ymTmM5Btk,771552
|
|
52
52
|
xoscar/backends/config.py,sha256=EG26f0GwX_f4dAhwTW77RBjiK9h8R_3JrD-rBF1bAq8,4984
|
|
53
53
|
xoscar/backends/allocate_strategy.py,sha256=tC1Nbq2tJohahUwd-zoRYHEDX65wyuX8tmeY45uWj_w,4845
|
|
54
54
|
xoscar/backends/__init__.py,sha256=VHEBQcUWM5bj027W8EUf9PiJUAP7JoMrRw3Tsvy5ySw,643
|
|
@@ -56,11 +56,11 @@ xoscar/backends/core.py,sha256=rXJ73IC5lgERXCWvVrDEEyGAILlwVJs7XIWBCFUEVCc,10166
|
|
|
56
56
|
xoscar/backends/context.py,sha256=Vr_PibRxYCDQ_gYK7r-BOlw9TXw8VQbFsVTH7K7mHPk,15470
|
|
57
57
|
xoscar/backends/router.py,sha256=mhSvM5KVfV882jricVcpyxAqHEvhS4zL6ivczC6fOTE,7746
|
|
58
58
|
xoscar/backends/message.pyx,sha256=uyzilPc_7SqNwGUL4U-Zbfqku8bfZyRW_Lt_S3I_LEU,17930
|
|
59
|
-
xoscar/backends/pool.py,sha256=
|
|
59
|
+
xoscar/backends/pool.py,sha256=prpyQzJMp5ujFHaSnyhltlSFsnTxXh9D0pPzU6CCCb4,59864
|
|
60
60
|
xoscar/backends/indigen/backend.py,sha256=znl_fZzWGEtLH8hZ9j9Kkf0fva25jEem2_KO7I1RVvc,1612
|
|
61
61
|
xoscar/backends/indigen/__init__.py,sha256=tKHP5ClzedBRBpZsLRVErR3EUNbbDm4CY4u0rCFJr44,685
|
|
62
62
|
xoscar/backends/indigen/driver.py,sha256=VGzkacYKykegW5qhCuhx01gdgBZEKJjNIyfNCnA6Nm8,952
|
|
63
|
-
xoscar/backends/indigen/pool.py,sha256=
|
|
63
|
+
xoscar/backends/indigen/pool.py,sha256=v0Ps79W0WyeFSt2YxCJnh7q_1dnRQmo9887gcW3pNoc,17226
|
|
64
64
|
xoscar/backends/test/backend.py,sha256=nv9WFhH5Bbq4Q1HB9yfpciZBaeHT4IQAtzugBWESrUY,1263
|
|
65
65
|
xoscar/backends/test/__init__.py,sha256=j2ZfD6prD9WjUxRUDC7Eq5Z7N7TkL6fFr59oNyc_vY4,682
|
|
66
66
|
xoscar/backends/test/pool.py,sha256=TW4X6J-92Pti66103poQBNDBznX6CBD3RLOc_zixjTo,7257
|
|
File without changes
|
|
File without changes
|