fractal-server 2.14.0a29__py3-none-any.whl → 2.14.0a30__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.0a29"
1
+ __VERSION__ = "2.14.0a30"
@@ -142,11 +142,6 @@ async def get_workflow_tasks_statuses(
142
142
  value["num_available_images"] = None
143
143
  new_response[key] = value
144
144
 
145
- for wftask in workflow.task_list:
146
- logger.debug(
147
- f"({dataset_id=}, {wftask.id=}): {new_response[wftask.id]}"
148
- )
149
-
150
145
  return JSONResponse(content=new_response, status_code=200)
151
146
 
152
147
 
@@ -10,6 +10,7 @@ from fractal_server.app.db import AsyncSession
10
10
  from fractal_server.app.db import get_async_db
11
11
  from fractal_server.app.models import UserOAuth
12
12
  from fractal_server.app.routes.auth import current_active_user
13
+ from fractal_server.images.tools import aggregate_types
13
14
  from fractal_server.images.tools import filter_image_list
14
15
 
15
16
  router = APIRouter()
@@ -42,12 +43,8 @@ async def verify_unique_types(
42
43
  type_filters=query.type_filters,
43
44
  )
44
45
 
45
- # NOTE: see issue 2486
46
- available_types = set(
47
- _type for _img in filtered_images for _type in _img["types"].keys()
48
- )
49
-
50
46
  # Get actual values for each available type
47
+ available_types = aggregate_types(filtered_images)
51
48
  values_per_type: dict[str, set] = {
52
49
  _type: set() for _type in available_types
53
50
  }
@@ -59,7 +59,7 @@ def _check_versions_mismatch(
59
59
  if worker_python_version != server_python_version:
60
60
  # FIXME: turn this into an error, after fixing a broader CI issue, see
61
61
  # https://github.com/fractal-analytics-platform/fractal-server/issues/375
62
- logging.warning(
62
+ logging.critical(
63
63
  f"{server_python_version=} but {worker_python_version=}. "
64
64
  "cloudpickle is not guaranteed to correctly load "
65
65
  "pickle files created with different python versions. "
@@ -133,10 +133,7 @@ class SudoSlurmRunner(BaseSlurmRunner):
133
133
  # Write local file
134
134
  with open(target, "wb") as f:
135
135
  f.write(res.stdout)
136
- logger.debug(
137
- f"[_fetch_artifacts_single_job] Copied {source} into "
138
- f"{target}"
139
- )
136
+ logger.critical(f"Copied {source} into {target}")
140
137
  except RuntimeError as e:
141
138
  logger.warning(
142
139
  f"SKIP copy {source} into {target}. "
@@ -480,14 +480,6 @@ def run_v2_task_compound(
480
480
 
481
481
  num_tasks = 1 + len(parallelization_list)
482
482
 
483
- # Mark the init-task `HistoryUnit` as "done"
484
- with next(get_sync_db()) as db:
485
- update_status_of_history_unit(
486
- history_unit_id=init_history_unit_id,
487
- status=HistoryUnitStatus.DONE,
488
- db_sync=db,
489
- )
490
-
491
483
  # 3/B: parallel part of a compound task
492
484
  _check_parallelization_list_size(parallelization_list)
493
485
 
@@ -601,7 +593,7 @@ def run_v2_task_compound(
601
593
  else:
602
594
  bulk_update_status_of_history_unit(
603
595
  history_unit_ids=history_unit_ids,
604
- status=HistoryUnitStatus.DONE,
596
+ status=HistoryUnitStatus.DONE + [init_history_unit_id],
605
597
  db_sync=db,
606
598
  )
607
599
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: fractal-server
3
- Version: 2.14.0a29
3
+ Version: 2.14.0a30
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=kUL0dbn6Xeh51ncedqHsdAUJ9AyGZJ6Jg5xDra2AQec,26
1
+ fractal_server/__init__.py,sha256=SFFDWPMmFk-6eyFIzPxZ-xU9S6oQw1VgiT5XGEJQlWA,26
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
@@ -36,7 +36,7 @@ fractal_server/app/routes/api/v2/_aux_functions_history.py,sha256=ZlI6nwzB5r9AiY
36
36
  fractal_server/app/routes/api/v2/_aux_functions_task_lifecycle.py,sha256=qdXCb6IP8-qPEAxGZKljtjIqNzIAyRaAsQSRi5VqFHM,6773
37
37
  fractal_server/app/routes/api/v2/_aux_functions_tasks.py,sha256=uhNSs-jcS7ndIUFKiOC1yrDiViw3uvKEXi9UL04BMks,11642
38
38
  fractal_server/app/routes/api/v2/dataset.py,sha256=h5AhE0sdhQ20ZlIbEJsFnHIOUW0S1VHFpoflpBkVScs,8936
39
- fractal_server/app/routes/api/v2/history.py,sha256=SljYnMClbSTz3Rs42ELYKHdtiAr9pxn8nkEHoXEOAnc,17936
39
+ fractal_server/app/routes/api/v2/history.py,sha256=pDztvwQFOh3JChtSk9GIG3H17yg4G5pk1mq14qXF4Ck,17793
40
40
  fractal_server/app/routes/api/v2/images.py,sha256=BGpO94gVd8BTpCN6Mun2RXmjrPmfkIp73m8RN7uiGW4,8361
41
41
  fractal_server/app/routes/api/v2/job.py,sha256=MU1sHIKk_89WrD0TD44d4ufzqnywot7On_W71KjyUbQ,6500
42
42
  fractal_server/app/routes/api/v2/project.py,sha256=uAZgATiHcOvbnRX-vv1D3HoaEUvLUd7vzVmGcqOP8ZY,4602
@@ -47,7 +47,7 @@ fractal_server/app/routes/api/v2/task_collection.py,sha256=IDNF6sjDuU37HIQ0TuQA-
47
47
  fractal_server/app/routes/api/v2/task_collection_custom.py,sha256=totsl0DOC2DFLw8vgqOFivvftpEk3KbFDeOHT0UVQUs,5997
48
48
  fractal_server/app/routes/api/v2/task_group.py,sha256=62zcVTdheXM5V3WmFuqisIqgETjXmZaRpNMcDX5bXS0,7408
49
49
  fractal_server/app/routes/api/v2/task_group_lifecycle.py,sha256=3o9bCC8ubMwffQPPaxQZy-CjH9IB2RkIReIecI6L2_w,9300
50
- fractal_server/app/routes/api/v2/verify_image_types.py,sha256=zGT1el58P-E7dVttyuo6MdCC0DtsxiP-NqMawl6EpGE,1950
50
+ fractal_server/app/routes/api/v2/verify_image_types.py,sha256=RBi6-3Sp1wYm_obDPRcEBtLvRfsRknufbZyhGGHVo6I,1924
51
51
  fractal_server/app/routes/api/v2/workflow.py,sha256=sW6Nm7dfzUY354hawyEkpQHy7rUvV2FCV8DPorH-TDU,10270
52
52
  fractal_server/app/routes/api/v2/workflow_import.py,sha256=INmnhlMEBJp-vHPR0f940DANPmIidts3OfcooeM_aNA,11205
53
53
  fractal_server/app/routes/api/v2/workflowtask.py,sha256=7_syX2EO7ibF6Xkm7HBPhsUYq6aYnKNeC5iSaafQhG4,11342
@@ -80,14 +80,14 @@ fractal_server/app/runner/executors/slurm_common/_job_states.py,sha256=nuV-Zba38
80
80
  fractal_server/app/runner/executors/slurm_common/_slurm_config.py,sha256=_feRRnVVnvQa3AsOQqfULfOgaoj2o6Ze0-fwXwic8p4,15795
81
81
  fractal_server/app/runner/executors/slurm_common/base_slurm_runner.py,sha256=3LHrNmJ8VuBSeFI07q4tq41DWtcYTzYJfHvsaezDyoI,30355
82
82
  fractal_server/app/runner/executors/slurm_common/get_slurm_config.py,sha256=BW6fDpPyB0VH5leVxvwzkVH3r3hC7DuSyoWmRzHITWg,7305
83
- fractal_server/app/runner/executors/slurm_common/remote.py,sha256=EB2uASKjrBIr25oc13XvSwf8x-TpTBr9WuaLMwNr2y4,5850
83
+ fractal_server/app/runner/executors/slurm_common/remote.py,sha256=FS_F8EaPp-A5eQT5_ZH3ICCHt0-C8b_2OSYcyRkXnb4,5851
84
84
  fractal_server/app/runner/executors/slurm_common/slurm_job_task_models.py,sha256=RoxHLKOn0_wGjnY0Sv0a9nDSiqxYZHKRoMkT3p9_G1E,3607
85
85
  fractal_server/app/runner/executors/slurm_common/utils_executors.py,sha256=naPyJI0I3lD-sYHbSXbMFGUBK4h_SggA5V91Z1Ch1Xg,1416
86
86
  fractal_server/app/runner/executors/slurm_ssh/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
87
87
  fractal_server/app/runner/executors/slurm_ssh/runner.py,sha256=LeEt8a4knm9OCULxhhLkMPBanMW_65ZvL1O-HEA9QMw,7151
88
88
  fractal_server/app/runner/executors/slurm_sudo/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
89
89
  fractal_server/app/runner/executors/slurm_sudo/_subprocess_run_as_user.py,sha256=O1bNg1DiSDJmQE0RmOk2Ii47DagiXp5ryd0R6KxO2OM,3177
90
- fractal_server/app/runner/executors/slurm_sudo/runner.py,sha256=iFaE3EMepbXzmKwqydwYMGJu7D1ak4RhbA43rkVUWZo,5962
90
+ fractal_server/app/runner/executors/slurm_sudo/runner.py,sha256=WGGVHX_juqyC6OVhln9yg-YKjLiuAoWZhAGxBjhNkWw,5873
91
91
  fractal_server/app/runner/extract_archive.py,sha256=I7UGIHXXuFvlgVPsP7GMWPu2-DiS1EiyBs7a1bvgkxI,2458
92
92
  fractal_server/app/runner/filenames.py,sha256=lPnxKHtdRizr6FqG3zOdjDPyWA7GoaJGTtiuJV0gA8E,70
93
93
  fractal_server/app/runner/run_subprocess.py,sha256=c3JbYXq3hX2aaflQU19qJ5Xs6J6oXGNvnTEoAfv2bxc,959
@@ -102,7 +102,7 @@ fractal_server/app/runner/v2/db_tools.py,sha256=du5dKhMMFMErQXbGIgu9JvO_vtMensod
102
102
  fractal_server/app/runner/v2/deduplicate_list.py,sha256=IVTE4abBU1bUprFTkxrTfYKnvkNTanWQ-KWh_etiT08,645
103
103
  fractal_server/app/runner/v2/merge_outputs.py,sha256=D1L4Taieq9i71SPQyNc1kMokgHh-sV_MqF3bv7QMDBc,907
104
104
  fractal_server/app/runner/v2/runner.py,sha256=aNMPABdTS9kJADL2JUeRNI6Ir-gDFTOnRI2tFRohjOU,15848
105
- fractal_server/app/runner/v2/runner_functions.py,sha256=X8veuvIxoEYEhQTOqGHv7FIYFiu8MbrH__YOjV_7WU4,18745
105
+ fractal_server/app/runner/v2/runner_functions.py,sha256=a7pmlFrtQ9f42NVwHUwiS_3rVwtaLeR0l3zastvn2jk,18518
106
106
  fractal_server/app/runner/v2/runner_functions_low_level.py,sha256=_h_OOffq3d7V0uHa8Uvs0mj31y1GSZBUXjDDF3WjVjY,3620
107
107
  fractal_server/app/runner/v2/submit_workflow.py,sha256=QywUGIoHAHnrWgfnyX8W9kVqKY-RvVyNLpzrbsXZOZ4,13075
108
108
  fractal_server/app/runner/v2/task_interface.py,sha256=IXdQTI8rXFgXv1Ez0js4CjKFf3QwO2GCHRTuwiFtiTQ,2891
@@ -209,8 +209,8 @@ fractal_server/tasks/v2/utils_templates.py,sha256=Kc_nSzdlV6KIsO0CQSPs1w70zLyENP
209
209
  fractal_server/urls.py,sha256=QjIKAC1a46bCdiPMu3AlpgFbcv6a4l3ABcd5xz190Og,471
210
210
  fractal_server/utils.py,sha256=PMwrxWFxRTQRl1b9h-NRIbFGPKqpH_hXnkAT3NfZdpY,3571
211
211
  fractal_server/zip_tools.py,sha256=GjDgo_sf6V_DDg6wWeBlZu5zypIxycn_l257p_YVKGc,4876
212
- fractal_server-2.14.0a29.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
213
- fractal_server-2.14.0a29.dist-info/METADATA,sha256=3i4Ng70jNwtP8x-LM_n5OI02RsO6kqtfijb-iKYuVR8,4563
214
- fractal_server-2.14.0a29.dist-info/WHEEL,sha256=7dDg4QLnNKTvwIDR9Ac8jJaAmBC_owJrckbC0jjThyA,88
215
- fractal_server-2.14.0a29.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
216
- fractal_server-2.14.0a29.dist-info/RECORD,,
212
+ fractal_server-2.14.0a30.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
213
+ fractal_server-2.14.0a30.dist-info/METADATA,sha256=0N6oyTMnvT6iCt7t3wApMtB6XIZ8-aGQnvE3bS584bY,4563
214
+ fractal_server-2.14.0a30.dist-info/WHEEL,sha256=7dDg4QLnNKTvwIDR9Ac8jJaAmBC_owJrckbC0jjThyA,88
215
+ fractal_server-2.14.0a30.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
216
+ fractal_server-2.14.0a30.dist-info/RECORD,,