fractal-server 2.9.0a7__py3-none-any.whl → 2.9.0a8__py3-none-any.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.
- fractal_server/__init__.py +1 -1
- fractal_server/app/routes/admin/v2/task_group_lifecycle.py +0 -2
- fractal_server/app/runner/v2/_local_experimental/executor.py +2 -1
- fractal_server/tasks/v2/local/deactivate.py +7 -0
- fractal_server/tasks/v2/ssh/deactivate.py +7 -0
- {fractal_server-2.9.0a7.dist-info → fractal_server-2.9.0a8.dist-info}/METADATA +1 -1
- {fractal_server-2.9.0a7.dist-info → fractal_server-2.9.0a8.dist-info}/RECORD +10 -10
- {fractal_server-2.9.0a7.dist-info → fractal_server-2.9.0a8.dist-info}/LICENSE +0 -0
- {fractal_server-2.9.0a7.dist-info → fractal_server-2.9.0a8.dist-info}/WHEEL +0 -0
- {fractal_server-2.9.0a7.dist-info → fractal_server-2.9.0a8.dist-info}/entry_points.txt +0 -0
fractal_server/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__VERSION__ = "2.9.
|
1
|
+
__VERSION__ = "2.9.0a8"
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Custom version of Python
|
3
3
|
[ProcessPoolExecutor](https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.ProcessPoolExecutor)).
|
4
4
|
"""
|
5
|
+
import multiprocessing as mp
|
5
6
|
import threading
|
6
7
|
import time
|
7
8
|
from concurrent.futures import ProcessPoolExecutor
|
@@ -32,7 +33,7 @@ class FractalProcessPoolExecutor(ProcessPoolExecutor):
|
|
32
33
|
def __init__(
|
33
34
|
self, shutdown_file: Path, interval: float = 1.0, *args, **kwargs
|
34
35
|
):
|
35
|
-
super().__init__(*args, **kwargs)
|
36
|
+
super().__init__(*args, **kwargs, mp_context=mp.get_context("spawn"))
|
36
37
|
self.shutdown_file = Path(shutdown_file)
|
37
38
|
self.interval = float(interval)
|
38
39
|
logger.debug(
|
@@ -191,6 +191,13 @@ def deactivate_local(
|
|
191
191
|
|
192
192
|
# We now have all required information for reactivating the
|
193
193
|
# virtual environment at a later point
|
194
|
+
|
195
|
+
# Actually mark the task group as non-active
|
196
|
+
logger.info("Now setting `active=False`.")
|
197
|
+
task_group.active = False
|
198
|
+
task_group = add_commit_refresh(obj=task_group, db=db)
|
199
|
+
|
200
|
+
# Proceed with deactivation
|
194
201
|
logger.info(f"Now removing {task_group.venv_path}.")
|
195
202
|
shutil.rmtree(task_group.venv_path)
|
196
203
|
logger.info(f"All good, {task_group.venv_path} removed.")
|
@@ -223,6 +223,13 @@ def deactivate_ssh(
|
|
223
223
|
|
224
224
|
# We now have all required information for reactivating the
|
225
225
|
# virtual environment at a later point
|
226
|
+
|
227
|
+
# Actually mark the task group as non-active
|
228
|
+
logger.info("Now setting `active=False`.")
|
229
|
+
task_group.active = False
|
230
|
+
task_group = add_commit_refresh(obj=task_group, db=db)
|
231
|
+
|
232
|
+
# Proceed with deactivation
|
226
233
|
logger.info(f"Now removing {task_group.venv_path}.")
|
227
234
|
fractal_ssh.remove_folder(
|
228
235
|
folder=task_group.venv_path,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
fractal_server/__init__.py,sha256=
|
1
|
+
fractal_server/__init__.py,sha256=VLpRwbtJf-Ix3UM5F6cus-Ipabzl-u3aEANGaiXBtsE,24
|
2
2
|
fractal_server/__main__.py,sha256=dEkCfzLLQrIlxsGC-HBfoR-RBMWnJDgNrxYTyzmE9c0,6146
|
3
3
|
fractal_server/alembic.ini,sha256=MWwi7GzjzawI9cCAK1LW7NxIBQDUqD12-ptJoq5JpP0,3153
|
4
4
|
fractal_server/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -31,7 +31,7 @@ fractal_server/app/routes/admin/v2/job.py,sha256=cbkFIRIIXaWmNsUFI7RAu8HpQ0mWn_b
|
|
31
31
|
fractal_server/app/routes/admin/v2/project.py,sha256=luy-yiGX1JYTdPm1hpIdDUUqPm8xHuipLy9k2X6zu74,1223
|
32
32
|
fractal_server/app/routes/admin/v2/task.py,sha256=Y0eujBgGhVapNXfW9azDxw4EBzLmEmCdh70y1RNQcb0,3895
|
33
33
|
fractal_server/app/routes/admin/v2/task_group.py,sha256=DncrOAB4q-v3BAmxg35m4EohleriW_FLGE5gpW_Or08,8120
|
34
|
-
fractal_server/app/routes/admin/v2/task_group_lifecycle.py,sha256=
|
34
|
+
fractal_server/app/routes/admin/v2/task_group_lifecycle.py,sha256=0e0ZJ_k75TVHaT2o8Xk33DPDSgh-eBhZf-y4y7t-Adg,9429
|
35
35
|
fractal_server/app/routes/api/__init__.py,sha256=2IDheFi0OFdsUg7nbUiyahqybvpgXqeHUXIL2QtWrQQ,641
|
36
36
|
fractal_server/app/routes/api/v1/__init__.py,sha256=Y2HQdG197J0a7DyQEE2jn53IfxD0EHGhzK1I2JZuEck,958
|
37
37
|
fractal_server/app/routes/api/v1/_aux_functions.py,sha256=P9Q48thGH95w0h5cacYoibxqgiiLW4oqZ8rNJ2LIISY,13219
|
@@ -118,7 +118,7 @@ fractal_server/app/runner/v2/_local/executor.py,sha256=QrJlD77G6q4WohoJQO7XXbvi2
|
|
118
118
|
fractal_server/app/runner/v2/_local_experimental/__init__.py,sha256=53yS8a-l0dMTT_4oz7WVFbKJ3NRsycyutYkOuBTm6Ik,5694
|
119
119
|
fractal_server/app/runner/v2/_local_experimental/_local_config.py,sha256=QiS5ODe-iGmUQdIT8QgpbyMc7-ZpIRv1V_f2q3qfPQ8,3211
|
120
120
|
fractal_server/app/runner/v2/_local_experimental/_submit_setup.py,sha256=we7r-sQf0CJ9gxbfbgHcYdC6pKjx8eXweljIjthxkv8,1212
|
121
|
-
fractal_server/app/runner/v2/_local_experimental/executor.py,sha256=
|
121
|
+
fractal_server/app/runner/v2/_local_experimental/executor.py,sha256=plvEqqdcXOSohYsQoykYlyDwCING7OO5h-4XAZtwdPs,5503
|
122
122
|
fractal_server/app/runner/v2/_slurm_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
123
123
|
fractal_server/app/runner/v2/_slurm_common/get_slurm_config.py,sha256=UdkoFF0HF_TdKbay-d9bjkxT2ltcOE5i8H_FoOu64HU,6202
|
124
124
|
fractal_server/app/runner/v2/_slurm_ssh/__init__.py,sha256=D0Dnbhnzw0BXwQmjqLmxqpE9oreAtasA-9aOzxC4l_I,4530
|
@@ -217,12 +217,12 @@ fractal_server/tasks/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
217
217
|
fractal_server/tasks/v2/local/__init__.py,sha256=9RVItnS7OyLsJOuJjWMCicaky4ASUPQEYD4SzDs0hOE,141
|
218
218
|
fractal_server/tasks/v2/local/_utils.py,sha256=EvhmVwYjqaNyDCUMEsTWYOUXLgEwR1xr6bu32apCEI8,2491
|
219
219
|
fractal_server/tasks/v2/local/collect.py,sha256=BbXSgxExPUxFxcmBs3ejwWzRae-sQgfbk3zZkAQg77Y,12190
|
220
|
-
fractal_server/tasks/v2/local/deactivate.py,sha256=
|
220
|
+
fractal_server/tasks/v2/local/deactivate.py,sha256=XR1nvJY3mKCRqwPwV79rVaQmtb3J83KdmJKjTOHD-cU,9250
|
221
221
|
fractal_server/tasks/v2/local/reactivate.py,sha256=R3rArAzUpMGf6xa3dGVwwXHW9WVDi5ia28AFisZsqNc,6112
|
222
222
|
fractal_server/tasks/v2/ssh/__init__.py,sha256=aSQbVi6Ummt9QzcSLWNmSqYjfdxrn9ROmqgH6bDpI7k,135
|
223
223
|
fractal_server/tasks/v2/ssh/_utils.py,sha256=2E-F_862zM6FZA-im-E8t8kjptWRIhBj1IDHC6QD1H8,2818
|
224
224
|
fractal_server/tasks/v2/ssh/collect.py,sha256=ZOpz-v2t2kOAbbpdlsH_P_XjNtEh2TaC1dIZ1bBHwxw,12941
|
225
|
-
fractal_server/tasks/v2/ssh/deactivate.py,sha256=
|
225
|
+
fractal_server/tasks/v2/ssh/deactivate.py,sha256=Ffk_UuQSBUBNBCiviuKNhEUGyZPQa4_erJKFdwgMcE8,10616
|
226
226
|
fractal_server/tasks/v2/ssh/reactivate.py,sha256=jdO8iyzavzSVPcOpIZrYSEkGPYTvz5XJ5h_5-nz9yzA,7896
|
227
227
|
fractal_server/tasks/v2/templates/1_create_venv.sh,sha256=PK0jdHKtQpda1zULebBaVPORt4t6V17wa4N1ohcj5ac,548
|
228
228
|
fractal_server/tasks/v2/templates/2_pip_install.sh,sha256=RDDfbFnGOK3aRuHyXqDOUNCGullzAr0zS7BFqG1CJeE,1720
|
@@ -238,8 +238,8 @@ fractal_server/tasks/v2/utils_templates.py,sha256=C5WLuY3uGG2s53OEL-__H35-fmSlgu
|
|
238
238
|
fractal_server/urls.py,sha256=5o_qq7PzKKbwq12NHSQZDmDitn5RAOeQ4xufu-2v9Zk,448
|
239
239
|
fractal_server/utils.py,sha256=utvmBx8K9I8hRWFquxna2pBaOqe0JifDL_NVPmihEJI,3525
|
240
240
|
fractal_server/zip_tools.py,sha256=GjDgo_sf6V_DDg6wWeBlZu5zypIxycn_l257p_YVKGc,4876
|
241
|
-
fractal_server-2.9.
|
242
|
-
fractal_server-2.9.
|
243
|
-
fractal_server-2.9.
|
244
|
-
fractal_server-2.9.
|
245
|
-
fractal_server-2.9.
|
241
|
+
fractal_server-2.9.0a8.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
|
242
|
+
fractal_server-2.9.0a8.dist-info/METADATA,sha256=lJzxJeo2n6DgBq4W6SjhuD0Vq4YL82QbSxBj62aFjcQ,4585
|
243
|
+
fractal_server-2.9.0a8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
244
|
+
fractal_server-2.9.0a8.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
|
245
|
+
fractal_server-2.9.0a8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|