Better error handling for DiscoverInventoryAgentIntrepret #128
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: NationTech/harmony#128
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There's an edge case here that might break the
DiscoverInventoryAgentInterpret
:discover_agents
is awaited, but the spawned task inside the callback are not awaited at all. So in some edge cases,discover_agents
might finish executing before the task itself.And because we don't await for the task inside the callback, error handling is a bit awkward. Currently it says "all good" even though there could be an error:
Originally posted by @letian in https://git.nationtech.io/NationTech/harmony/pulls/127/files#issuecomment-1987
Yep I thought about renaming the score to
LaunchDiscoveryAgentScore
it would make it way more intuitive for the current behavior without having to refactor anything more.