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

fix/fallback_timeout_handling #210

Merged
merged 3 commits into from
Jun 18, 2024
Merged

fix/fallback_timeout_handling #210

merged 3 commits into from
Jun 18, 2024

Conversation

JarbasAl
Copy link
Member

by using a killable_event we can abort fallbacks that timedout avoiding multiple answers

closes OpenVoiceOS/ovos-core#389

also avoids sessions being able to kill each other's events, could be problematic in get_response and company

by using a killable_event we can abort fallbacks that timedout avoiding multiple answers

closes OpenVoiceOS/ovos-core#389

also avoids sessions being able to kill each other's events, could be problematic in get_response and company
@JarbasAl JarbasAl added the bug Something isn't working label Jun 18, 2024
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Jun 18, 2024
by using a killable_event we can abort fallbacks that timedout avoiding multiple answers

closes #389

needs OpenVoiceOS/OVOS-workshop#210
Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 76.47059% with 4 lines in your changes missing coverage. Please review.

Please upload report for BASE (dev@4125ced). Learn more about missing BASE report.

Files Patch % Lines
ovos_workshop/decorators/killable.py 81.81% 2 Missing ⚠️
ovos_workshop/skills/fallback.py 66.66% 2 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##             dev     #210   +/-   ##
======================================
  Coverage       ?   54.56%           
======================================
  Files          ?       36           
  Lines          ?     3966           
  Branches       ?        0           
======================================
  Hits           ?     2164           
  Misses         ?     1802           
  Partials       ?        0           

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

@JarbasAl JarbasAl merged commit 2f986d6 into dev Jun 18, 2024
9 checks passed
@JarbasAl JarbasAl deleted the fix/fallback_timeout_handling branch June 18, 2024 15:06
JarbasAl added a commit to OpenVoiceOS/ovos-core that referenced this pull request Jun 18, 2024
* improve_fallback_timeout

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

* fix/fallback_timeout_handling

by using a killable_event we can abort fallbacks that timedout avoiding multiple answers

closes #389

needs OpenVoiceOS/OVOS-workshop#210

* fix tests

* fix duplicated messages

* Update requirements.txt

* "max_skill_runtime"
@github-actions github-actions bot mentioned this pull request Sep 2, 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