Skip to content
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

New TaskV2 and TaskGroupV2 attributes #1856

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

ychiucco
Copy link
Collaborator

@ychiucco ychiucco commented Oct 7, 2024

closes #1828
closes #1829

Checklist before merging

  • I added an appropriate entry to CHANGELOG.md
  • I added logging to new code - if appropriate.
  • I merged main into the current branch.

@ychiucco ychiucco linked an issue Oct 7, 2024 that may be closed by this pull request
9 tasks
Copy link

github-actions bot commented Oct 7, 2024

Benchmark comparison

GET /api/alive/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 1.0 0.8 1.25 0.0 0.0
power 1.0 0.8 1.25 0.0 0.0
dataset 1.0 0.8 1.25 0.0 0.0
project 1.0 0.8 1.25 0.0 0.0
job 1.0 0.8 1.25 0.0 0.0

GET /api/v2/dataset/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 10.3 10.5 0.98 0.6 0.6
power 387.9 408.6 0.95 389.0 389.0
dataset 151.6 154.4 0.98 145.6 145.6
project 47.8 50.5 0.95 50.9 50.9
job 27.6 29.0 0.95 35.3 35.3

GET /api/v2/job/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 6.5 7.1 0.92 2.2 2.2
power 137.0 139.5 0.98 652.4 652.4
dataset 138.1 143.5 0.96 905.6 905.6
project 47.0 47.0 1.00 283.9 283.9
job 36.8 40.7 0.90 225.0 225.0

GET /api/v2/project/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 7.8 8.2 0.95 0.1 0.1
power 7.6 7.8 0.97 0.1 0.1
dataset 7.8 7.8 1.00 0.1 0.1
project 9.5 9.7 0.98 2.3 2.3
job 7.7 8.0 0.96 0.1 0.1

GET /api/v2/task/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 6.3 6.4 0.98 0.8 0.7
power 6.2 6.4 0.97 0.8 0.7
dataset 6.6 6.7 0.99 0.8 0.7
project 6.4 6.3 1.02 0.8 0.7
job 6.5 6.3 1.03 0.8 0.7

GET /api/v2/workflow/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 11.8 12.2 0.97 0.8 0.8
power 25.2 24.8 1.02 29.6 27.3
dataset 19.5 19.1 1.02 17.0 15.9
project 22.6 23.6 0.96 21.4 19.9
job 13.7 12.1 1.13 0.8 0.8

POST /api/v2/project/3/dataset/407/images/query/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
dataset 145.6 151.6 0.96 275.1 275.1

GET /auth/current-user/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 5.0 5.2 0.96 0.2 0.2
power 4.9 4.9 1.00 0.2 0.2
dataset 4.9 5.1 0.96 0.2 0.2
project 5.0 5.1 0.98 0.2 0.2
job 5.0 5.0 1.00 0.1 0.1

POST /auth/token/login/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
dataset 263.1 264.8 0.99 0.2 0.2

Copy link

github-actions bot commented Oct 7, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  fractal_server/app/models/v2
  task.py
  fractal_server/app/routes/api/v2
  task.py 65, 67, 70
  task_collection_custom.py
  fractal_server/app/schemas/v2
  manifest.py
  task.py 105, 183-185
  task_group.py
  fractal_server/tasks/v2
  background_operations.py
  background_operations_ssh.py 325
Project Total  

This report was generated by python-coverage-comment-action

for author in authors
)
]
if tags is not None:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's postpone implementing this query, so that we can take our time to learn aboute sqlalchemy/sqlite/postgres support for JSON queries.
(please open a new issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Core admin-side TaskGroup attributes Introduce new TaskV2 attributes
2 participants