Skip to content

Conversation

@GabyUnalaq
Copy link
Contributor

@GabyUnalaq GabyUnalaq commented Dec 3, 2024

Issues: #39

Solution

When the agent gets disconnected, the sdk enters a routine where it tries to send the hello message over and over. Succeeding in sending it means the agent is back. The agent will receive a number of hello messages when starting, but this is ok because the first one will be taken into account (and much needed by the whole interaction) and the rest of them will be ignored, thus the communication can continue.

Definition of Done

The PR shall be merged only if all items mentioned in CONTRIBUTING.md have been followed. In case an item is not applicable as described, please provide a short explanation in the description.

Copy link
Contributor

@krucod3 krucod3 left a comment

Choose a reason for hiding this comment

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

Looks good, just had a couple of small findings.
I have not tested it yet, but I'll do so and we can merge after the fixes and the test.

Co-authored-by: Kaloyan <[email protected]>
Copy link
Contributor

@krucod3 krucod3 left a comment

Choose a reason for hiding this comment

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

All done here. The handling also works, but the documentation of the exceptions needs to be updated. As this is out of the scope of the current ticket, I created a new one: #47

@krucod3 krucod3 merged commit b15396e into eclipse-ankaios:main Dec 16, 2024
21 checks passed
@GabyUnalaq GabyUnalaq deleted the fix_agent_reconnect branch December 16, 2024 09:38
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