-
Notifications
You must be signed in to change notification settings - Fork 32
π¨ introduce comp_run_snapshot_tasks table (ποΈ) π¨
#7758
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
π¨ introduce comp_run_snapshot_tasks table (ποΈ) π¨
#7758
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7758 +/- ##
==========================================
+ Coverage 86.78% 88.63% +1.85%
==========================================
Files 1841 1553 -288
Lines 71507 61626 -9881
Branches 1215 546 -669
==========================================
- Hits 62060 54625 -7435
+ Misses 9105 6857 -2248
+ Partials 342 144 -198
Continue to review full report in Codecov by Sentry.
π New features to boost your workflow:
|
services/director-v2/src/simcore_service_director_v2/modules/comp_scheduler/_manager.py
Outdated
Show resolved
Hide resolved
...ices/director-v2/src/simcore_service_director_v2/modules/db/repositories/comp_tasks/_core.py
Outdated
Show resolved
Hide resolved
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! thanks a lot!
A few comments that we can discuss tomorrow morning.
packages/postgres-database/src/simcore_postgres_database/models/comp_run_snapshot_tasks.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/models/comp_run_snapshot_tasks.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/models/comp_runs.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/utils_comp_run_snapshot_tasks.py
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/utils_comp_run_snapshot_tasks.py
Outdated
Show resolved
Hide resolved
...ices/director-v2/src/simcore_service_director_v2/modules/db/repositories/comp_tasks/_core.py
Outdated
Show resolved
Hide resolved
...ices/director-v2/src/simcore_service_director_v2/modules/db/repositories/comp_tasks/_core.py
Outdated
Show resolved
Hide resolved
...ector-v2/src/simcore_service_director_v2/modules/db/repositories/comp_runs_snapshot_tasks.py
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/modules/comp_scheduler/_manager.py
Outdated
Show resolved
Hide resolved
GitHK
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: what will happen to the comp_runs table after this? will it still be there? Te dynamic-services require it
Yes, all tables will still be there. |
@GitHK you do not require |
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good! Thanks for all the changes!
packages/postgres-database/src/simcore_postgres_database/models/comp_run_snapshot_tasks.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/models/comp_runs.py
Outdated
Show resolved
Hide resolved
services/director-v2/src/simcore_service_director_v2/models/comp_runs.py
Outdated
Show resolved
Hide resolved
pcrespov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx for the explanations offline.
I left some minor suggestions
I would really like to add tests to the utls_ in the postgres. I am happy to show you how to do that in a very fast way
packages/postgres-database/src/simcore_postgres_database/models/comp_runs.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/utils_comp_run_snapshot_tasks.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/utils_comp_run_snapshot_tasks.py
Outdated
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/utils_comp_run_snapshot_tasks.py
Show resolved
Hide resolved
packages/postgres-database/src/simcore_postgres_database/utils_comp_runs.py
Show resolved
Hide resolved
|
@mergify queue |
π Waiting for conditions to match
|
|
c2cf892
into
ITISFoundation:master
comp_run_snapshot_tasks table (ποΈ)comp_run_snapshot_tasks table (ποΈ) π¨



What do these changes do?
comp_run_snapshot_taskstable to store the task data for each individual run. The existingcomp_taskstable only caches the latest run and handles data differently, as it also includes dynamic and frontend services. Historically, this setup predates theprojectsand thenproject_nodestables.dag_adjacency_listfield to thecomp_runstable. Previously, this information was stored in thecomp_pipelinetable, which was only cached for the latest run. Now, we persist the DAG structure for every run individually.Related issue/s
comp_runs_nodestable to director-v2Β osparc-issues#1887How to test
Dev-ops