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

Fixes #18306: Create healthcheck API #3249

Merged

Conversation

ElaadF
Copy link
Member

@ElaadF ElaadF commented Oct 8, 2020

@ElaadF ElaadF added the WIP Use that label for a Work In Progress PR that must not be merged yet label Oct 8, 2020
@ElaadF ElaadF requested a review from fanf October 8, 2020 12:12
@ElaadF ElaadF force-pushed the ust_18306/create_healthcheck_api branch from 847ef8f to 2f7851c Compare October 8, 2020 12:14
@ElaadF
Copy link
Member Author

ElaadF commented Oct 8, 2020

Commit modified

@ElaadF ElaadF force-pushed the ust_18306/create_healthcheck_api branch from 2f7851c to 10b76e4 Compare October 8, 2020 16:15
@ElaadF
Copy link
Member Author

ElaadF commented Oct 8, 2020

Commit modified

@ElaadF ElaadF force-pushed the ust_18306/create_healthcheck_api branch from 10b76e4 to 556625d Compare October 8, 2020 17:05
@ElaadF
Copy link
Member Author

ElaadF commented Oct 8, 2020

Commit modified

@ElaadF ElaadF force-pushed the ust_18306/create_healthcheck_api branch from 556625d to 31b40ec Compare October 9, 2020 10:20
@ElaadF
Copy link
Member Author

ElaadF commented Oct 9, 2020

Commit modified

@ElaadF ElaadF requested a review from fanf October 9, 2020 10:22
@ElaadF ElaadF force-pushed the ust_18306/create_healthcheck_api branch from 31b40ec to e21c080 Compare October 9, 2020 10:39
@ElaadF
Copy link
Member Author

ElaadF commented Oct 9, 2020

Commit modified

@ElaadF ElaadF force-pushed the ust_18306/create_healthcheck_api branch from e21c080 to d7de582 Compare October 9, 2020 12:44
@ElaadF
Copy link
Member Author

ElaadF commented Oct 9, 2020

Commit modified

availableCores <- IOResult.effect(getRuntime.availableProcessors)
} yield {
availableCores match {
case 0 => Critical("No Core available")
Copy link
Member

Choose a reason for hiding this comment

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

it should really be case i if i <= 0 => because 0 core is an error (it can't be otherwise), and in case of error, you can't, make any assumption about what will be returned beside what the type contraints (an error is often a negative number in C-like semantic).

@ElaadF
Copy link
Member Author

ElaadF commented Oct 12, 2020

Commit modified

@ElaadF ElaadF requested a review from fanf October 12, 2020 16:59
@ElaadF ElaadF merged commit 0abad05 into Normation:branches/rudder/6.2 Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Trigger test WIP Use that label for a Work In Progress PR that must not be merged yet
Projects
None yet
3 participants