Skip to content

Commit

Permalink
"max_skill_runtime"
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Jun 18, 2024
1 parent c01c866 commit 4df34e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ovos_core/intent_services/fallback_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def attempt_fallback(self, utterances, skill_id, lang, message):
"lang": lang})
result = self.bus.wait_for_response(fb_msg,
f"ovos.skills.fallback.{skill_id}.response",
timeout=self.fallback_config.get("timeout", 10))
timeout=self.fallback_config.get("max_skill_runtime", 10))
if result and 'error' in result.data:
error_msg = result.data['error']
LOG.error(f"{skill_id}: {error_msg}")
Expand All @@ -154,7 +154,7 @@ def attempt_fallback(self, utterances, skill_id, lang, message):
self.bus.emit(message.forward("ovos.skills.fallback.force_timeout",
{"skill_id": skill_id}))
LOG.warning(f"{skill_id} took too long to answer, "
f'increasing "timeout" in mycroft.conf might help alleviate this issue')
f'increasing "max_skill_runtime" in mycroft.conf might help alleviate this issue')
return False

def _fallback_range(self, utterances, lang, message, fb_range):
Expand Down

0 comments on commit 4df34e4

Please sign in to comment.