fractal-server 2.14.8__py3-none-any.whl → 2.14.10__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.
@@ -1 +1 @@
1
- __VERSION__ = "2.14.8"
1
+ __VERSION__ = "2.14.10"
@@ -21,7 +21,8 @@ def fix_db():
21
21
 
22
22
  for hr in history_runs:
23
23
  logger.info(f"HistoryRun[{hr.id}] START")
24
-
24
+ if hr.workflowtask_id is None:
25
+ continue
25
26
  wft = db.get(WorkflowTaskV2, hr.workflowtask_id)
26
27
  if wft is None:
27
28
  logger.warning(
@@ -108,21 +108,22 @@ def collect_ssh(
108
108
  )
109
109
  return
110
110
 
111
- # Check that the (remote) task_group path does not exist
112
- if fractal_ssh.remote_exists(task_group.path):
113
- error_msg = f"{task_group.path} already exists."
114
- logger.error(error_msg)
115
- fail_and_cleanup(
116
- task_group=task_group,
117
- task_group_activity=activity,
118
- logger_name=LOGGER_NAME,
119
- log_file_path=log_file_path,
120
- exception=FileExistsError(error_msg),
121
- db=db,
122
- )
123
- return
124
-
125
111
  try:
112
+
113
+ # Check that the (remote) task_group path does not exist
114
+ if fractal_ssh.remote_exists(task_group.path):
115
+ error_msg = f"{task_group.path} already exists."
116
+ logger.error(error_msg)
117
+ fail_and_cleanup(
118
+ task_group=task_group,
119
+ task_group_activity=activity,
120
+ logger_name=LOGGER_NAME,
121
+ log_file_path=log_file_path,
122
+ exception=FileExistsError(error_msg),
123
+ db=db,
124
+ )
125
+ return
126
+
126
127
  # Create remote `task_group.path` and `script_dir_remote`
127
128
  # folders (note that because of `parents=True` we are in
128
129
  # the `no error if existing, make parent directories as
@@ -94,22 +94,22 @@ def deactivate_ssh(
94
94
  )
95
95
  return
96
96
 
97
- # Check that the (local) task_group venv_path does exist
98
- if not fractal_ssh.remote_exists(task_group.venv_path):
99
- error_msg = f"{task_group.venv_path} does not exist."
100
- logger.error(error_msg)
101
- fail_and_cleanup(
102
- task_group=task_group,
103
- task_group_activity=activity,
104
- logger_name=LOGGER_NAME,
105
- log_file_path=log_file_path,
106
- exception=FileNotFoundError(error_msg),
107
- db=db,
108
- )
109
- return
110
-
111
97
  try:
112
98
 
99
+ # Check that the (local) task_group venv_path does exist
100
+ if not fractal_ssh.remote_exists(task_group.venv_path):
101
+ error_msg = f"{task_group.venv_path} does not exist."
102
+ logger.error(error_msg)
103
+ fail_and_cleanup(
104
+ task_group=task_group,
105
+ task_group_activity=activity,
106
+ logger_name=LOGGER_NAME,
107
+ log_file_path=log_file_path,
108
+ exception=FileNotFoundError(error_msg),
109
+ db=db,
110
+ )
111
+ return
112
+
113
113
  activity.status = TaskGroupActivityStatusV2.ONGOING
114
114
  activity = add_commit_refresh(obj=activity, db=db)
115
115
 
@@ -95,21 +95,22 @@ def reactivate_ssh(
95
95
  )
96
96
  return
97
97
 
98
- # Check that the (remote) task_group venv_path does not exist
99
- if fractal_ssh.remote_exists(task_group.venv_path):
100
- error_msg = f"{task_group.venv_path} already exists."
101
- logger.error(error_msg)
102
- fail_and_cleanup(
103
- task_group=task_group,
104
- task_group_activity=activity,
105
- logger_name=LOGGER_NAME,
106
- log_file_path=log_file_path,
107
- exception=FileExistsError(error_msg),
108
- db=db,
109
- )
110
- return
111
-
112
98
  try:
99
+ # Check that the (remote) task_group venv_path does not
100
+ # exist
101
+ if fractal_ssh.remote_exists(task_group.venv_path):
102
+ error_msg = f"{task_group.venv_path} already exists."
103
+ logger.error(error_msg)
104
+ fail_and_cleanup(
105
+ task_group=task_group,
106
+ task_group_activity=activity,
107
+ logger_name=LOGGER_NAME,
108
+ log_file_path=log_file_path,
109
+ exception=FileExistsError(error_msg),
110
+ db=db,
111
+ )
112
+ return
113
+
113
114
  activity.status = TaskGroupActivityStatusV2.ONGOING
114
115
  activity = add_commit_refresh(obj=activity, db=db)
115
116
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: fractal-server
3
- Version: 2.14.8
3
+ Version: 2.14.10
4
4
  Summary: Backend component of the Fractal analytics platform
5
5
  License: BSD-3-Clause
6
6
  Author: Tommaso Comparin
@@ -1,4 +1,4 @@
1
- fractal_server/__init__.py,sha256=J4Z_3MJBz35q1QkrsCfsHWFy9mFVPklMFbbA-LDr_dU,23
1
+ fractal_server/__init__.py,sha256=4KxVhiHLgADdi86yBYpB-0c9NEhimJDPdBjyV6O1z1M,24
2
2
  fractal_server/__main__.py,sha256=rkM8xjY1KeS3l63irB8yCrlVobR-73uDapC4wvrIlxI,6957
3
3
  fractal_server/alembic.ini,sha256=MWwi7GzjzawI9cCAK1LW7NxIBQDUqD12-ptJoq5JpP0,3153
4
4
  fractal_server/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -128,7 +128,7 @@ fractal_server/app/security/__init__.py,sha256=oJ8RVglpOvWPQY4RokiE2YA72Nqo42dZE
128
128
  fractal_server/app/security/signup_email.py,sha256=Xd6QYxcdmg0PHpDwmUE8XQmPcOj3Xjy5oROcIMhmltM,1472
129
129
  fractal_server/app/user_settings.py,sha256=OP1yiYKtPadxwM51_Q0hdPk3z90TCN4z1BLpQsXyWiU,1316
130
130
  fractal_server/config.py,sha256=ldI9VzEWmwU75Z7zVku6I-rXGKS3bJDdCifZnwad9-4,25924
131
- fractal_server/data_migrations/2_14_6.py,sha256=cXmiMWPjtghr1f0uapZrs4mtbcj3tiliOebNz9LPR8Q,1532
131
+ fractal_server/data_migrations/2_14_10.py,sha256=gMRR5QB0SDv0ToEiXVLg1VrHprM_Ii-9O1Kg-ZF-YhY,1599
132
132
  fractal_server/data_migrations/README.md,sha256=_3AEFvDg9YkybDqCLlFPdDmGJvr6Tw7HRI14aZ3LOIw,398
133
133
  fractal_server/data_migrations/tools.py,sha256=LeMeASwYGtEqd-3wOLle6WARdTGAimoyMmRbbJl-hAM,572
134
134
  fractal_server/gunicorn_fractal.py,sha256=u6U01TLGlXgq1v8QmEpLih3QnsInZD7CqphgJ_GrGzc,1230
@@ -192,9 +192,9 @@ fractal_server/tasks/v2/local/deactivate.py,sha256=94s_RDND8aR5Y8RxFrRx61rZBMPGq
192
192
  fractal_server/tasks/v2/local/reactivate.py,sha256=eBgFgq5xVKNr4DIDX7QU8xXerhwMrPaHDJ1wTth7aQc,6191
193
193
  fractal_server/tasks/v2/ssh/__init__.py,sha256=aSQbVi6Ummt9QzcSLWNmSqYjfdxrn9ROmqgH6bDpI7k,135
194
194
  fractal_server/tasks/v2/ssh/_utils.py,sha256=LjaEYVUJDChilu3YuhxuGWYRNnVJ_zqNE9SDHdRTIHY,2824
195
- fractal_server/tasks/v2/ssh/collect.py,sha256=Dxp1vd6gt3FZUqp9nVeqJR7w8l5i8F8CwvepYt4FRkg,14772
196
- fractal_server/tasks/v2/ssh/deactivate.py,sha256=eqMg1dOmKcQ2aKnlqDHmEQBwD22_ilUXMih9-i3IKaY,12876
197
- fractal_server/tasks/v2/ssh/reactivate.py,sha256=29DPb7_103tHeIkniJAGsWiC6f-6Cy92ZBY6APFipOs,8744
195
+ fractal_server/tasks/v2/ssh/collect.py,sha256=bClq8hB04igrUXk1Mgc7pRWQws77mpYX8KYL-w6Lwtg,14825
196
+ fractal_server/tasks/v2/ssh/deactivate.py,sha256=YO2PJ0VV-LhVW-6O-t-d6BQciO2fYAkYbz5Y9UBiXaA,12928
197
+ fractal_server/tasks/v2/ssh/reactivate.py,sha256=1DIQduhqZLbrIeoVyyp54vemBWZu94tFDvjpmDsZZI0,8818
198
198
  fractal_server/tasks/v2/templates/1_create_venv.sh,sha256=PK0jdHKtQpda1zULebBaVPORt4t6V17wa4N1ohcj5ac,548
199
199
  fractal_server/tasks/v2/templates/2_pip_install.sh,sha256=Md2LPt3BJ7IfN0USF2uivl4rP8OwbzJOUepGAr_Cicg,1836
200
200
  fractal_server/tasks/v2/templates/3_pip_freeze.sh,sha256=JldREScEBI4cD_qjfX4UK7V4aI-FnX9ZvVNxgpSOBFc,168
@@ -214,8 +214,8 @@ fractal_server/types/validators/_workflow_task_arguments_validators.py,sha256=HL
214
214
  fractal_server/urls.py,sha256=QjIKAC1a46bCdiPMu3AlpgFbcv6a4l3ABcd5xz190Og,471
215
215
  fractal_server/utils.py,sha256=FCY6HUsRnnbsWkT2kwQ2izijiHuCrCD3Kh50G0QudxE,3531
216
216
  fractal_server/zip_tools.py,sha256=tqz_8f-vQ9OBRW-4OQfO6xxY-YInHTyHmZxU7U4PqZo,4885
217
- fractal_server-2.14.8.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
218
- fractal_server-2.14.8.dist-info/METADATA,sha256=Xh-fRUzKALs-_d20zzArQZnJvsqzejwtSgbOMec5xoY,4243
219
- fractal_server-2.14.8.dist-info/WHEEL,sha256=7dDg4QLnNKTvwIDR9Ac8jJaAmBC_owJrckbC0jjThyA,88
220
- fractal_server-2.14.8.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
221
- fractal_server-2.14.8.dist-info/RECORD,,
217
+ fractal_server-2.14.10.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
218
+ fractal_server-2.14.10.dist-info/METADATA,sha256=PYdArZinbL0-GpXR6qoaSlOrIz974JdmJN8cNXieP0Y,4244
219
+ fractal_server-2.14.10.dist-info/WHEEL,sha256=7dDg4QLnNKTvwIDR9Ac8jJaAmBC_owJrckbC0jjThyA,88
220
+ fractal_server-2.14.10.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
221
+ fractal_server-2.14.10.dist-info/RECORD,,