fractal-server 2.9.0a12__py3-none-any.whl → 2.9.1__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/tasks/v2/ssh/collect.py +19 -21
- {fractal_server-2.9.0a12.dist-info → fractal_server-2.9.1.dist-info}/METADATA +1 -1
- {fractal_server-2.9.0a12.dist-info → fractal_server-2.9.1.dist-info}/RECORD +7 -7
- {fractal_server-2.9.0a12.dist-info → fractal_server-2.9.1.dist-info}/LICENSE +0 -0
- {fractal_server-2.9.0a12.dist-info → fractal_server-2.9.1.dist-info}/WHEEL +0 -0
- {fractal_server-2.9.0a12.dist-info → fractal_server-2.9.1.dist-info}/entry_points.txt +0 -0
fractal_server/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__VERSION__ = "2.9.
|
1
|
+
__VERSION__ = "2.9.1"
|
@@ -69,7 +69,6 @@ def collect_ssh(
|
|
69
69
|
)
|
70
70
|
|
71
71
|
with next(get_sync_db()) as db:
|
72
|
-
|
73
72
|
# Get main objects from db
|
74
73
|
activity = db.get(TaskGroupActivityV2, task_group_activity_id)
|
75
74
|
task_group = db.get(TaskGroupV2, task_group_id)
|
@@ -117,6 +116,25 @@ def collect_ssh(
|
|
117
116
|
return
|
118
117
|
|
119
118
|
try:
|
119
|
+
script_dir_remote = (
|
120
|
+
Path(task_group.path) / SCRIPTS_SUBFOLDER
|
121
|
+
).as_posix()
|
122
|
+
# Create remote `task_group.path` and `script_dir_remote`
|
123
|
+
# folders (note that because of `parents=True` we are in
|
124
|
+
# the `no error if existing, make parent directories as
|
125
|
+
# needed` scenario for `mkdir`)
|
126
|
+
fractal_ssh.mkdir(folder=task_group.path, parents=True)
|
127
|
+
fractal_ssh.mkdir(folder=script_dir_remote, parents=True)
|
128
|
+
|
129
|
+
# Copy wheel file into task group path
|
130
|
+
if task_group.wheel_path:
|
131
|
+
new_wheel_path = _copy_wheel_file_ssh(
|
132
|
+
task_group=task_group,
|
133
|
+
fractal_ssh=fractal_ssh,
|
134
|
+
logger_name=LOGGER_NAME,
|
135
|
+
)
|
136
|
+
task_group.wheel_path = new_wheel_path
|
137
|
+
task_group = add_commit_refresh(obj=task_group, db=db)
|
120
138
|
|
121
139
|
# Prepare replacements for templates
|
122
140
|
replacements = get_collection_replacements(
|
@@ -127,9 +145,6 @@ def collect_ssh(
|
|
127
145
|
)
|
128
146
|
|
129
147
|
# Prepare common arguments for `_customize_and_run_template``
|
130
|
-
script_dir_remote = (
|
131
|
-
Path(task_group.path) / SCRIPTS_SUBFOLDER
|
132
|
-
).as_posix()
|
133
148
|
common_args = dict(
|
134
149
|
replacements=replacements,
|
135
150
|
script_dir_local=(
|
@@ -144,23 +159,6 @@ def collect_ssh(
|
|
144
159
|
logger_name=LOGGER_NAME,
|
145
160
|
)
|
146
161
|
|
147
|
-
# Create remote `task_group.path` and `script_dir_remote`
|
148
|
-
# folders (note that because of `parents=True` we are in
|
149
|
-
# the `no error if existing, make parent directories as
|
150
|
-
# needed` scenario for `mkdir`)
|
151
|
-
fractal_ssh.mkdir(folder=task_group.path, parents=True)
|
152
|
-
fractal_ssh.mkdir(folder=script_dir_remote, parents=True)
|
153
|
-
|
154
|
-
# Copy wheel file into task group path
|
155
|
-
if task_group.wheel_path:
|
156
|
-
new_wheel_path = _copy_wheel_file_ssh(
|
157
|
-
task_group=task_group,
|
158
|
-
fractal_ssh=fractal_ssh,
|
159
|
-
logger_name=LOGGER_NAME,
|
160
|
-
)
|
161
|
-
task_group.wheel_path = new_wheel_path
|
162
|
-
task_group = add_commit_refresh(obj=task_group, db=db)
|
163
|
-
|
164
162
|
logger.debug("installing - START")
|
165
163
|
|
166
164
|
# Set status to ONGOING and refresh logs
|
@@ -1,4 +1,4 @@
|
|
1
|
-
fractal_server/__init__.py,sha256=
|
1
|
+
fractal_server/__init__.py,sha256=PV3pFNkPgVbTBTGekRDdEwLUrBsGNXOb1hGr6F9R4OE,22
|
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
|
@@ -222,7 +222,7 @@ fractal_server/tasks/v2/local/deactivate.py,sha256=XR1nvJY3mKCRqwPwV79rVaQmtb3J8
|
|
222
222
|
fractal_server/tasks/v2/local/reactivate.py,sha256=R3rArAzUpMGf6xa3dGVwwXHW9WVDi5ia28AFisZsqNc,6112
|
223
223
|
fractal_server/tasks/v2/ssh/__init__.py,sha256=aSQbVi6Ummt9QzcSLWNmSqYjfdxrn9ROmqgH6bDpI7k,135
|
224
224
|
fractal_server/tasks/v2/ssh/_utils.py,sha256=2E-F_862zM6FZA-im-E8t8kjptWRIhBj1IDHC6QD1H8,2818
|
225
|
-
fractal_server/tasks/v2/ssh/collect.py,sha256=
|
225
|
+
fractal_server/tasks/v2/ssh/collect.py,sha256=FkTfyhdwAp4qa4W_dqjT0CmuDMFuCBSOYjg_y1Kq2Bs,12939
|
226
226
|
fractal_server/tasks/v2/ssh/deactivate.py,sha256=Ffk_UuQSBUBNBCiviuKNhEUGyZPQa4_erJKFdwgMcE8,10616
|
227
227
|
fractal_server/tasks/v2/ssh/reactivate.py,sha256=jdO8iyzavzSVPcOpIZrYSEkGPYTvz5XJ5h_5-nz9yzA,7896
|
228
228
|
fractal_server/tasks/v2/templates/1_create_venv.sh,sha256=PK0jdHKtQpda1zULebBaVPORt4t6V17wa4N1ohcj5ac,548
|
@@ -239,8 +239,8 @@ fractal_server/tasks/v2/utils_templates.py,sha256=C5WLuY3uGG2s53OEL-__H35-fmSlgu
|
|
239
239
|
fractal_server/urls.py,sha256=5o_qq7PzKKbwq12NHSQZDmDitn5RAOeQ4xufu-2v9Zk,448
|
240
240
|
fractal_server/utils.py,sha256=utvmBx8K9I8hRWFquxna2pBaOqe0JifDL_NVPmihEJI,3525
|
241
241
|
fractal_server/zip_tools.py,sha256=GjDgo_sf6V_DDg6wWeBlZu5zypIxycn_l257p_YVKGc,4876
|
242
|
-
fractal_server-2.9.
|
243
|
-
fractal_server-2.9.
|
244
|
-
fractal_server-2.9.
|
245
|
-
fractal_server-2.9.
|
246
|
-
fractal_server-2.9.
|
242
|
+
fractal_server-2.9.1.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
|
243
|
+
fractal_server-2.9.1.dist-info/METADATA,sha256=2XOrXmdvOE1zcrKJoCr4VemPcRk3PpZJOUg_0yXxeDc,4543
|
244
|
+
fractal_server-2.9.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
245
|
+
fractal_server-2.9.1.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
|
246
|
+
fractal_server-2.9.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|