-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
…mfactory/yapapi into blue/polling-batch-timeout-argument
… and server-side timeouts.
|
||
|
||
if __name__ == "__main__": | ||
parser = build_parser("Test http") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha, no :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in 57f2c48
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]) | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this 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
…ons to .py files included within to make it obvious that these files are not part of the requestor agent
…he services have started
No description provided.