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

Add missing features, polish to SynchronousComputeService #98

Merged
merged 46 commits into from
Mar 31, 2023

Conversation

dotsdl
Copy link
Member

@dotsdl dotsdl commented Mar 4, 2023

Closes #34.

@dotsdl dotsdl changed the title Add missing features, polish to SynchronousComputeService [WIP] Add missing features, polish to SynchronousComputeService Mar 4, 2023
@hmacdope hmacdope mentioned this pull request Mar 6, 2023
2 tasks
@codecov-commenter
Copy link

codecov-commenter commented Mar 16, 2023

Codecov Report

Patch coverage: 71.42% and project coverage change: -0.58 ⚠️

Comparison is base (266228d) 85.53% compared to head (83a72bc) 84.96%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #98      +/-   ##
==========================================
- Coverage   85.53%   84.96%   -0.58%     
==========================================
  Files          21       21              
  Lines        1915     2088     +173     
==========================================
+ Hits         1638     1774     +136     
- Misses        277      314      +37     
Impacted Files Coverage Δ
alchemiscale/cli.py 82.07% <33.33%> (-5.71%) ⬇️
alchemiscale/compute/api.py 65.55% <42.30%> (-10.57%) ⬇️
alchemiscale/storage/statestore.py 92.71% <76.19%> (-1.23%) ⬇️
alchemiscale/compute/service.py 82.09% <80.19%> (+18.73%) ⬆️
alchemiscale/storage/models.py 89.07% <84.21%> (-1.22%) ⬇️
alchemiscale/compute/client.py 100.00% <100.00%> (ø)
alchemiscale/interface/client.py 93.12% <100.00%> (+0.05%) ⬆️
alchemiscale/settings.py 88.00% <100.00%> (+0.24%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@hmacdope hmacdope left a comment

Choose a reason for hiding this comment

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

Few little queries but overall looking good.

alchemiscale/cli.py Outdated Show resolved Hide resolved
alchemiscale/compute/api.py Outdated Show resolved Hide resolved
alchemiscale/compute/api.py Outdated Show resolved Hide resolved
alchemiscale/compute/api.py Outdated Show resolved Hide resolved
alchemiscale/compute/service.py Show resolved Hide resolved
dotsdl added 6 commits March 23, 2023 00:14
…uests

Instead, making expiry part of the heartbeat API call; should be fairly
cheap, and should still get the desired effect.
heartbeat interval for SynchronousComputeService set to 300 seconds
(5 min); expiry set to 1800 seconds (30 minutes)
dotsdl added a commit that referenced this pull request Mar 24, 2023
Very much a work in progress; will be a separate PR from #98
@dotsdl
Copy link
Member Author

dotsdl commented Mar 24, 2023

@mikemhenry do you have a favorite logging formatter you'd like us to use for compute service logs?

@dotsdl
Copy link
Member Author

dotsdl commented Mar 28, 2023

Ready for final review @hmacdope!

Copy link
Collaborator

@hmacdope hmacdope left a comment

Choose a reason for hiding this comment

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

Looking great @dotsdl, just a few minor things. Ping me again when you want another review, its super close.

alchemiscale/compute/api.py Show resolved Hide resolved
alchemiscale/compute/service.py Outdated Show resolved Hide resolved
alchemiscale/compute/service.py Show resolved Hide resolved
alchemiscale/storage/statestore.py Show resolved Hide resolved
alchemiscale/storage/statestore.py Outdated Show resolved Hide resolved
alchemiscale/storage/statestore.py Show resolved Hide resolved
alchemiscale/storage/statestore.py Show resolved Hide resolved
alchemiscale/tests/integration/test_cli.py Show resolved Hide resolved
Co-authored-by: Hugo MacDermott-Opeskin <[email protected]>
@dotsdl dotsdl changed the title [WIP] Add missing features, polish to SynchronousComputeService Add missing features, polish to SynchronousComputeService Mar 31, 2023
@dotsdl
Copy link
Member Author

dotsdl commented Mar 31, 2023

Changes complete @hmacdope! Ready for another review!

Copy link
Collaborator

@hmacdope hmacdope left a comment

Choose a reason for hiding this comment

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

You satisfied all my queries @dotsdl! Feel free to merge when ready.

@dotsdl
Copy link
Member Author

dotsdl commented Mar 31, 2023

Thanks @hmacdope! This PR is much better following your reviews. Merging!

@dotsdl dotsdl merged commit 4e8f1bf into main Mar 31, 2023
@dotsdl dotsdl deleted the synchronous-compute-service branch April 1, 2023 00:08
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.

Compute : SynchronousComputeService implementation with core features
3 participants