Better error handling for DiscoverInventoryAgentIntrepret #128
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_agentsis awaited, but the spawned task inside the callback are not awaited at all. So in some edge cases,discover_agentsmight 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
LaunchDiscoveryAgentScoreit would make it way more intuitive for the current behavior without having to refactor anything more.