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

Feat: misc task finishing #285

Merged
merged 2 commits into from
Sep 17, 2024
Merged

Feat: misc task finishing #285

merged 2 commits into from
Sep 17, 2024

Conversation

gluax
Copy link
Contributor

@gluax gluax commented Sep 17, 2024

Motivation

More agent information.

Explanation of Changes

Add a status check to see if the agent can talk to the node.
Agent status also returns the agent version.

Testing

Works locally.

Related PRs and Issues

Closes #206.
Closes #208.

@gluax gluax self-assigned this Sep 17, 2024
let node_client = lock.as_ref().ok_or(AgentError::NodeClientNotSet)?;

Ok(AgentStatus {
aot_online: node_client.status(ctx).await.is_ok(),
Copy link
Contributor

Choose a reason for hiding this comment

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

wouldn't the presence of the node_client lock indicate that the node is online? I guess this indicates it's responsive

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true, I could rename it to online and responsive or something? Idk I hate naming things

Copy link
Contributor

Choose a reason for hiding this comment

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

online is fine

@gluax gluax merged commit 4db274e into main Sep 17, 2024
2 checks passed
@gluax gluax deleted the feat/misc-task-finishing branch September 17, 2024 21:56
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.

✅ Get CLI Commands ✅ Agent Status Monitoring
2 participants