Skip to content
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

Merged
merged 6 commits into from
Jun 18, 2024
Merged

improve_fallback_timeout #506

merged 6 commits into from
Jun 18, 2024

Conversation

JarbasAl
Copy link
Member

@JarbasAl JarbasAl commented Jun 18, 2024

closes #389

  • allow up to 10 seconds by default for each fallback skill (previously 3)
  • make timeout configurable "max_skill_runtime": 10
  • log warnings on timeout
  • kill running fallback handler on timeout fix/fallback_timeout_handling OVOS-workshop#210
  • fix, sending a "ping" per skill (+ latency and bus message spam), now a single "ping" is sent

for reference, the killable_events decorator is tested here https://github.com/OpenVoiceOS/ovos-core/blob/dev/test/integrationtests/test_workshop.py#L83

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
@JarbasAl JarbasAl added bug Something isn't working enhancement New feature or request labels Jun 18, 2024
@JarbasAl JarbasAl requested review from goldyfruit, mikejgray, NeonDaniel and a team June 18, 2024 02:29
Copy link

codecov bot commented Jun 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.67%. Comparing base (4194020) to head (4df34e4).
Report is 3 commits behind head on dev.

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     
Flag Coverage Δ
unittests 73.67% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

JarbasAl and others added 5 commits June 18, 2024 03:53
fallbacks = [(k, v) for k, v in self.registered_fallbacks.items()
if k in self._collect_fallback_skills(message, fb_range)]
Copy link
Member Author

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

@JarbasAl JarbasAl removed the enhancement New feature or request label Jun 18, 2024
@JarbasAl JarbasAl merged commit a726ee1 into dev Jun 18, 2024
8 checks passed
@JarbasAl JarbasAl deleted the improve_fallback_timeout branch June 18, 2024 15:51
@JarbasAl JarbasAl added this to the 0.0.8 milestone Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] all fallback answer
1 participant