fractal-server 2.14.0a29__py3-none-any.whl → 2.14.0a31__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.0a31"
@@ -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
  }
@@ -130,10 +130,6 @@ def execute_tasks_v2(
130
130
  db.commit()
131
131
  db.refresh(history_run)
132
132
  history_run_id = history_run.id
133
- logger.debug(
134
- "[execute_tasks_v2] Created `HistoryRun` with "
135
- f"{history_run_id=}."
136
- )
137
133
 
138
134
  # TASK EXECUTION (V2)
139
135
  if task.type in ["non_parallel", "converter_non_parallel"]:
@@ -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.0a31
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=AP6Ge4A5_FJX881ADkuAqQ-e7MqAvMKtIIALfLociC4,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
@@ -101,8 +101,8 @@ fractal_server/app/runner/v2/_slurm_sudo.py,sha256=TVihkQKMX6YWEWxXJjQo0WEQOjVy7
101
101
  fractal_server/app/runner/v2/db_tools.py,sha256=du5dKhMMFMErQXbGIgu9JvO_vtMensodyPsyDeqz1yQ,3324
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
- 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
104
+ fractal_server/app/runner/v2/runner.py,sha256=B4kAF1S-zHf2PbyHedfuiaNpu4oslVDp33KgXYcoXIk,15706
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.0a31.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
213
+ fractal_server-2.14.0a31.dist-info/METADATA,sha256=gWthjo3HdoO6koOD4uwA7A7LyDXuNPDHFvGYHhHwh20,4563
214
+ fractal_server-2.14.0a31.dist-info/WHEEL,sha256=7dDg4QLnNKTvwIDR9Ac8jJaAmBC_owJrckbC0jjThyA,88
215
+ fractal_server-2.14.0a31.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
216
+ fractal_server-2.14.0a31.dist-info/RECORD,,