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

✨🎨 Preferences: Inactivity and Concurrency #5024

Merged
merged 10 commits into from
Nov 29, 2023

Conversation

ignapas
Copy link
Contributor

@ignapas ignapas commented Nov 13, 2023

What do these changes do?

  • Adds two new preferences: The inactivity and the maximum job concurrency settings

image

Related issue/s

How to test

Check the preferences dialog for the mentioned properties and check that they change in the DB.
Please review the wordings.

Dev Checklist

DevOps Checklist

@ignapas ignapas added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Nov 13, 2023
@ignapas ignapas added this to the 7peaks milestone Nov 13, 2023
@ignapas ignapas self-assigned this Nov 13, 2023
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

Merging #5024 (f43cf5f) into master (f185eda) will decrease coverage by 3.6%.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #5024      +/-   ##
=========================================
- Coverage    84.8%   81.2%    -3.6%     
=========================================
  Files        1263     526     -737     
  Lines       52019   26670   -25349     
  Branches     1124     198     -926     
=========================================
- Hits        44113   21675   -22438     
+ Misses       7673    4945    -2728     
+ Partials      233      50     -183     
Flag Coverage Δ
integrationtests 64.9% <100.0%> (+13.1%) ⬆️
unittests 86.4% <100.0%> (+2.4%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ore_service_webserver/users/_preferences_models.py 100.0% <100.0%> (ø)

... and 922 files with indirect coverage changes

Copy link
Collaborator

@elisabettai elisabettai left a comment

Choose a reason for hiding this comment

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

Very nice! Some questions/comments:

Can the "inactivity shutdown" be set to None (so it never happens)? If this is possible,this we should also warn the users that this going to consume credits.

It is not very clear what the concurrent job preference does. We might add a short explanation.

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@matusdrobuliak66 matusdrobuliak66 left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

nice thanks!

for @elisabettai the max concurrent job should allow:

  • say you have a pipeline with 10 parallel computational services
  • if max concurrent jobs is set to 4, then only 4 will run in parallel (each service consumes 1 machine),
  • that also means that if you run this via publicAPI, at most 4 jobs will run in parallel,

Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

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

nice 👍

@ignapas ignapas enabled auto-merge (squash) November 16, 2023 10:39
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link

codeclimate bot commented Nov 28, 2023

Code Climate has analyzed commit f43cf5f and detected 0 issues on this pull request.

View more on Code Climate.

@ignapas ignapas merged commit 0951e10 into ITISFoundation:master Nov 29, 2023
55 checks passed
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jan 8, 2024
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:frontend issue affecting the front-end (area group) t:enhancement Improvement or request on an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants