-
Notifications
You must be signed in to change notification settings - Fork 32
π¨ Introduce grouping multiple jobs in task manager (Multiport simulation use case) (ποΈ) #8025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
matusdrobuliak66
merged 46 commits into
ITISFoundation:master
from
matusdrobuliak66:add-project-grouping-for-task-manager
Jul 7, 2025
Merged
π¨ Introduce grouping multiple jobs in task manager (Multiport simulation use case) (ποΈ) #8025
Changes from 17 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
44767c0
new feature
matusdrobuliak66 ee061d4
add first batch of unit tests
matusdrobuliak66 33ef9db
fix test
matusdrobuliak66 895ca6c
additional tests
matusdrobuliak66 641494d
fix test
matusdrobuliak66 a67b0bc
Merge branch 'master' into add-project-grouping-for-task-manager
matusdrobuliak66 d6bb65a
fix test
matusdrobuliak66 744e8c2
Merge branch 'add-project-grouping-for-task-manager' of github.com:maβ¦
matusdrobuliak66 e2e3da0
autogenerae alembic for funcapi read funcstions
matusdrobuliak66 c0b1e1b
Merge branch 'master' into add-project-grouping-for-task-manager
matusdrobuliak66 a5b1ecc
fixes
matusdrobuliak66 50527ee
fixes tests in postgres package
matusdrobuliak66 b0cbcc2
removing redundant comments
matusdrobuliak66 152c7e3
adding final tests
matusdrobuliak66 254ed05
Merge branch 'master' into add-project-grouping-for-task-manager
matusdrobuliak66 c177512
open api specs
matusdrobuliak66 6c6283f
removing redundant comments
matusdrobuliak66 397ee77
increase version
matusdrobuliak66 00c046a
merge master
matusdrobuliak66 7933bbb
review @sanderegg
matusdrobuliak66 d532646
fix
matusdrobuliak66 713e9ab
merge master - resolve conflicts
matusdrobuliak66 5675329
review @sanderegg
matusdrobuliak66 6e823e4
fix
matusdrobuliak66 d939878
fix
matusdrobuliak66 ee183b9
open api specs
matusdrobuliak66 fbb6cac
review @pcrespov
matusdrobuliak66 e22f580
fix
matusdrobuliak66 6c283aa
fix
matusdrobuliak66 6ccf7ef
fix
matusdrobuliak66 4a133f9
fix
matusdrobuliak66 4692f78
Merge branch 'master' into add-project-grouping-for-task-manager
matusdrobuliak66 3c5cbb8
fix
matusdrobuliak66 dedc4ff
fix
matusdrobuliak66 f9e27bf
fix tests
matusdrobuliak66 13859f4
Merge branch 'master' into add-project-grouping-for-task-manager
matusdrobuliak66 475be6a
fix migration
matusdrobuliak66 a85096b
Merge branch 'master' into add-project-grouping-for-task-manager
matusdrobuliak66 731bc9e
fix missue with 422
matusdrobuliak66 27e2485
Merge branch 'master' into add-project-grouping-for-task-manager
matusdrobuliak66 5bb60dd
fix comment
matusdrobuliak66 b765962
fix tests
matusdrobuliak66 cb8ba1f
Merge branch 'master' into add-project-grouping-for-task-manager
matusdrobuliak66 b129044
fix
matusdrobuliak66 ca93f7a
Merge branches 'add-project-grouping-for-task-manager' and 'add-projeβ¦
matusdrobuliak66 928a70e
Merge branch 'master' into add-project-grouping-for-task-manager
matusdrobuliak66 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| from datetime import datetime | ||
| from typing import Any, NamedTuple | ||
|
|
||
| from models_library.computations import CollectionRunID | ||
| from models_library.services_types import ServiceRunID | ||
| from pydantic import ( | ||
| AnyUrl, | ||
|
|
@@ -63,6 +64,55 @@ class ComputationRunRpcGetPage(NamedTuple): | |
| total: PositiveInt | ||
|
|
||
|
|
||
| class ComputationCollectionRunRpcGet(BaseModel): | ||
| collection_run_id: CollectionRunID | ||
| project_ids: list[str] | ||
| state: RunningState | ||
| info: dict[str, Any] | ||
| submitted_at: datetime | ||
| started_at: datetime | None | ||
| ended_at: datetime | None | ||
|
|
||
| model_config = ConfigDict( | ||
| json_schema_extra={ | ||
| "examples": [ | ||
| { | ||
| "collection_run_id": "12e0c8b2-bad6-40fb-9948-8dec4f65d4d9", | ||
| "project_ids": ["beb16d18-d57d-44aa-a638-9727fa4a72ef"], | ||
| "state": "SUCCESS", | ||
| "info": { | ||
| "wallet_id": 9866, | ||
| "user_email": "[email protected]", | ||
| "wallet_name": "test", | ||
| "product_name": "osparc", | ||
| "project_name": "test", | ||
| "project_metadata": { | ||
| "parent_node_id": "12e0c8b2-bad6-40fb-9948-8dec4f65d4d9", | ||
| "parent_node_name": "UJyfwFVYySnPCaLuQIaz", | ||
| "parent_project_id": "beb16d18-d57d-44aa-a638-9727fa4a72ef", | ||
| "parent_project_name": "qTjDmYPxeqAWfCKCQCYF", | ||
| "root_parent_node_id": "37176e84-d977-4993-bc49-d76fcfc6e625", | ||
| "root_parent_node_name": "UEXExIZVPeFzGRmMglPr", | ||
| "root_parent_project_id": "beb16d18-d57d-44aa-a638-9727fa4a72ef", | ||
| "root_parent_project_name": "FuDpjjFIyeNTWRUWCuKo", | ||
| }, | ||
| "node_id_names_map": {}, | ||
| "simcore_user_agent": "agent", | ||
| }, | ||
| "submitted_at": "2023-01-11 13:11:47.293595", | ||
| "started_at": "2023-01-11 13:11:47.293595", | ||
| "ended_at": "2023-01-11 13:11:47.293595", | ||
| } | ||
| ] | ||
| } | ||
| ) | ||
|
|
||
|
|
||
| class ComputationCollectionRunRpcGetPage(NamedTuple): | ||
| items: list[ComputationCollectionRunRpcGet] | ||
| total: PositiveInt | ||
|
|
||
|
|
||
| class ComputationTaskRpcGet(BaseModel): | ||
| project_uuid: ProjectID | ||
| node_id: NodeID | ||
|
|
@@ -100,3 +150,42 @@ class ComputationTaskRpcGet(BaseModel): | |
| class ComputationTaskRpcGetPage(NamedTuple): | ||
| items: list[ComputationTaskRpcGet] | ||
| total: PositiveInt | ||
|
|
||
|
|
||
| class ComputationCollectionRunTaskRpcGet(BaseModel): | ||
| project_uuid: ProjectID | ||
| node_id: NodeID | ||
| state: RunningState | ||
| progress: float | ||
| image: dict[str, Any] | ||
| started_at: datetime | None | ||
| ended_at: datetime | None | ||
| log_download_link: AnyUrl | None | ||
| service_run_id: ServiceRunID | ||
|
|
||
| model_config = ConfigDict( | ||
| json_schema_extra={ | ||
| "examples": [ | ||
| { | ||
| "project_uuid": "beb16d18-d57d-44aa-a638-9727fa4a72ef", | ||
| "node_id": "12e0c8b2-bad6-40fb-9948-8dec4f65d4d9", | ||
| "state": "SUCCESS", | ||
| "progress": 0.0, | ||
| "image": { | ||
| "name": "simcore/services/comp/ti-solutions-optimizer", | ||
| "tag": "1.0.19", | ||
| "node_requirements": {"CPU": 8.0, "RAM": 25769803776}, | ||
| }, | ||
| "started_at": "2023-01-11 13:11:47.293595", | ||
| "ended_at": "2023-01-11 13:11:47.293595", | ||
| "log_download_link": "https://example.com/logs", | ||
| "service_run_id": "comp_1_12e0c8b2-bad6-40fb-9948-8dec4f65d4d9_1", | ||
| } | ||
| ] | ||
| } | ||
| ) | ||
|
|
||
|
|
||
| class ComputationCollectionRunTaskRpcGetPage(NamedTuple): | ||
| items: list[ComputationCollectionRunTaskRpcGet] | ||
| total: PositiveInt | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.