Skip to content

Solve synchronization of KI's between KB and KER#13

Open
DaviddeBest-TNO wants to merge 6 commits intomainfrom
12-ki-synchronization
Open

Solve synchronization of KI's between KB and KER#13
DaviddeBest-TNO wants to merge 6 commits intomainfrom
12-ki-synchronization

Conversation

@DaviddeBest-TNO
Copy link
Copy Markdown
Contributor

Solves #12

Tests for various (incorrect) scenarios, like KI registration before KB registration, double registration, duplicate names, etc.

@DaviddeBest-TNO DaviddeBest-TNO linked an issue Mar 31, 2026 that may be closed by this pull request
3 tasks
@DaviddeBest-TNO DaviddeBest-TNO marked this pull request as ready for review March 31, 2026 09:15
self.registered = True
self.register_deferred_kis()
self.client.register_kb(self.info, reregister=True)
self.state = KnowledgeBaseState.REGISTERED
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Wat gebeurt er als register_kb niet succeed/faalt met een exceptie? Wordt de state dan alsnog op REGISTERED gezet?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Als register_kb faalt dan wordt de exceptie doorgegeven en wordt de state niet REGISTERED. Mijn redenering was dat als je KB niet registered dat probleem groot genoeg is om af te breken, en dat de gebruiker zelf de exceptie zal moeten handelen als je bijvoorbeeld een retry of iets dergelijks wilt hebben.

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.

Implement correct synchronization of KI's between KER and KB

2 participants