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

simple service toy prototype #303

Merged
merged 66 commits into from
May 27, 2021
Merged

Conversation

shadeofblue
Copy link
Contributor

@shadeofblue shadeofblue commented Mar 29, 2021

No description provided.

@shadeofblue shadeofblue requested a review from azawlocki March 29, 2021 17:23
@shadeofblue shadeofblue self-assigned this Mar 29, 2021
@shadeofblue shadeofblue removed the request for review from azawlocki March 29, 2021 17:23
@shadeofblue shadeofblue marked this pull request as ready for review May 19, 2021 16:40
@shadeofblue shadeofblue requested a review from a team May 19, 2021 16:40


if __name__ == "__main__":
parser = build_parser("Test http")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is "Test http" an accurate description?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

haha, no :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done in 57f2c48

Comment on lines +111 to +116
def instances():
return [(s.provider_name, s.state.value) for s in cluster.instances]

def still_running():
return any([s for s in cluster.instances if s.is_available])

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the example would be more readable if we moved these out of main()? That would require adding a c: Cluster parameter.

Or maybe even have a print_instances(cluster) function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added some comments, I wouldn't do pull those out

Copy link
Contributor

@azawlocki azawlocki left a comment

Choose a reason for hiding this comment

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

Looks good! I've left some minor comments, you may prefer to ignore them and merge as is

@shadeofblue shadeofblue merged commit 1d1647d into blue/services-api May 27, 2021
@shadeofblue shadeofblue deleted the blue/services-prototype branch May 27, 2021 13:31
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.

3 participants