Skip to content

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

@jeremy-audet
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


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

@jeremy-audet jeremy-audet 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.

3 participants