-
Notifications
You must be signed in to change notification settings - Fork 16
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
improve_fallback_timeout #506
Conversation
improves #389 but does not fix it allow up to 15 seconds by default for each fallback skill (previously 3) + make configurable log warnings on timeout
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #506 +/- ##
==========================================
+ Coverage 73.62% 73.67% +0.05%
==========================================
Files 15 15
Lines 3207 3210 +3
==========================================
+ Hits 2361 2365 +4
+ Misses 846 845 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
by using a killable_event we can abort fallbacks that timedout avoiding multiple answers closes #389 needs OpenVoiceOS/OVOS-workshop#210
fallbacks = [(k, v) for k, v in self.registered_fallbacks.items() | ||
if k in self._collect_fallback_skills(message, fb_range)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE for reviewers: this would repeat the ping/pong bus message pattern once per skill, it can't be used inside the iterator
closes #389
"max_skill_runtime": 10
for reference, the killable_events decorator is tested here https://github.com/OpenVoiceOS/ovos-core/blob/dev/test/integrationtests/test_workshop.py#L83