Status tools
| FUNCTION | DESCRIPTION |
|---|---|
enrich_images_unsorted_async |
Enrich images with a status-related attribute. |
enrich_images_unsorted_sync |
Enrich images with a status-related attribute. |
Classes¶
Functions:¶
_postprocess_image_lists(target_images, list_query_url_status)
¶
Source code in fractal_server/images/status_tools.py
_prepare_query(*, dataset_id, workflowtask_id)
¶
Note: the query does not include .order_by.
Source code in fractal_server/images/status_tools.py
enrich_images_unsorted_async(*, images, dataset_id, workflowtask_id, db)
async
¶
Enrich images with a status-related attribute.
| PARAMETER | DESCRIPTION |
|---|---|
|
The input image list |
|
The dataset ID
TYPE:
|
|
The workflow-task ID
TYPE:
|
|
An async db session
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[dict[str, Any]]
|
The list of enriched images, not necessarily in the same order as |
list[dict[str, Any]]
|
the input. |
Source code in fractal_server/images/status_tools.py
enrich_images_unsorted_sync(*, images, dataset_id, workflowtask_id)
¶
Enrich images with a status-related attribute.
| PARAMETER | DESCRIPTION |
|---|---|
|
The input image list |
|
The dataset ID
TYPE:
|
|
The workflow-task ID
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[dict[str, Any]]
|
The list of enriched images, not necessarily in the same order as |
list[dict[str, Any]]
|
the input. |