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

Doc'd the debugger #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Doc'd the debugger #33

wants to merge 1 commit into from

Conversation

psav
Copy link

@psav psav commented Feb 25, 2020

Doc'd the debugger


The three arguments are the same arguments one would pass to receptor itself.

data_path: points to the data path where the manifest and message store will reside
Copy link
Contributor

Choose a reason for hiding this comment

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

I still don't entirely get what this is. Is this a filesystem path encoded as a string?

Copy link
Author

Choose a reason for hiding this comment

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

yes

@Ichimonji10
Copy link
Contributor

Run poetry run black . in the root of the repo and add the changes to make all lints pass.

listen: defines the url that the receptor server will start on
node_id: declares the name of the node, or the node_id

The API exposes 4 endpoints:
Copy link
Contributor

Choose a reason for hiding this comment

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

Which API exposes four endpoints? The receptor process' socket address as defined by the listen parameter?

Copy link
Author

Choose a reason for hiding this comment

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

Your're right............sigh

@@ -13,34 +13,65 @@


class DiagNode:
"""
A DiagNode takes a datapath, a node_id and a listener port and spins up an instance of a
Copy link
Contributor

@Ichimonji10 Ichimonji10 Feb 25, 2020

Choose a reason for hiding this comment

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

Can this docstring start by stating what a DiagNode is, before progressing to the parameters it takes? Something like:

"""A wrapper around a receptor process that's configured to provide debugging info.

Accepts the following parameters:

...
"""

Or whatever is appropriate. I see some references to web.run_app and flask, so apparently there's a web app somewhere?

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