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

refactored /daemonstatus #32

Merged
merged 4 commits into from
Sep 18, 2024
Merged

refactored /daemonstatus #32

merged 4 commits into from
Sep 18, 2024

Conversation

vlerkin
Copy link
Collaborator

@vlerkin vlerkin commented Sep 17, 2024

refactored /daemonstatus to contain node_name, status and the number of pending, running and finished jobs, tested that it shows the actual load

…of pending, running and finished jobs, tested that it shows the actual load
Copy link
Member

@wvengen wvengen left a comment

Choose a reason for hiding this comment

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

Ah, great, thank you!
This can be a little more performant and concise. Otherwise, good to go.

Copy link
Member

@wvengen wvengen left a comment

Choose a reason for hiding this comment

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

Thanks! Almost there :)

@wvengen
Copy link
Member

wvengen commented Sep 18, 2024

Not sure why the test is failing now, but would be good to look into.

@wvengen
Copy link
Member

wvengen commented Sep 18, 2024

Restarted the test, and is fine. Hope this happens too often 👍

@wvengen
Copy link
Member

wvengen commented Sep 18, 2024

Ah, good one, about the iterator! Didn't realise it either when reading ⭕

@wvengen wvengen merged commit 01e473d into q-m:main Sep 18, 2024
4 checks passed
@wvengen
Copy link
Member

wvengen commented Sep 18, 2024

Ah, please mention the issue number when opening a PR :) #23 here

(And as a sidenote, we could also make a list of just the state, not requiring the whole objects in memory; but I'm not sure if that improves the code (readability), I was happy to merge it as it is.)

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.

2 participants