Skip to content

Commit 4862c37

Browse files
authored
Merge pull request #359 from OpenVoiceOS/release-7.0.5a1
Release 7.0.5a1
2 parents 663ccba + 7d57f4e commit 4862c37

4 files changed

Lines changed: 25 additions & 26 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
# Changelog
22

3-
## [7.0.4a1](https://github.com/OpenVoiceOS/ovos-workshop/tree/7.0.4a1) (2025-06-16)
3+
## [7.0.5a1](https://github.com/OpenVoiceOS/ovos-workshop/tree/7.0.5a1) (2025-06-16)
44

5-
[Full Changelog](https://github.com/OpenVoiceOS/ovos-workshop/compare/7.0.3a1...7.0.4a1)
5+
[Full Changelog](https://github.com/OpenVoiceOS/ovos-workshop/compare/7.0.4...7.0.5a1)
66

77
**Merged pull requests:**
88

9-
- fix: converse\_routing [\#356](https://github.com/OpenVoiceOS/ovos-workshop/pull/356) ([JarbasAl](https://github.com/JarbasAl))
10-
11-
## [7.0.3a1](https://github.com/OpenVoiceOS/ovos-workshop/tree/7.0.3a1) (2025-06-16)
12-
13-
[Full Changelog](https://github.com/OpenVoiceOS/ovos-workshop/compare/7.0.2...7.0.3a1)
14-
15-
**Merged pull requests:**
16-
17-
- Update ovos-config requirement from \<2.0.0,\>=0.0.12 to \>=0.0.12,\<3.0.0 in /requirements [\#354](https://github.com/OpenVoiceOS/ovos-workshop/pull/354) ([dependabot[bot]](https://github.com/apps/dependabot))
9+
- fix: shutdown [\#358](https://github.com/OpenVoiceOS/ovos-workshop/pull/358) ([JarbasAl](https://github.com/JarbasAl))
1810

1911

2012

ovos_workshop/skill_launcher.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -316,13 +316,16 @@ def _execute_instance_shutdown(self):
316316
"""
317317
Call the shutdown method of the skill being reloaded.
318318
"""
319-
try:
320-
self.instance.default_shutdown()
321-
except Exception as e:
322-
LOG.exception(f'An error occurred while shutting down '
323-
f'{self.skill_id}: {e}')
324-
else:
325-
LOG.info(f'Skill {self.skill_id} shut down successfully')
319+
if self.instance:
320+
try:
321+
self.instance.shutdown()
322+
except Exception:
323+
LOG.exception(f"Error while running skill shutdown() for {self.skill_id}")
324+
try:
325+
self.instance.default_shutdown()
326+
except Exception as e:
327+
LOG.exception(f'An error occurred while running skill default_shutdown '
328+
f'{self.skill_id}: {e}')
326329
del self.instance
327330
self.instance = None
328331

ovos_workshop/skills/ovos.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,16 +1216,20 @@ def default_shutdown(self):
12161216
except Exception as e:
12171217
self.log.error(f"Failed to remove events for {self.skill_id}: {e}")
12181218

1219-
try:
1220-
self.shutdown()
1221-
except Exception as e:
1222-
self.log.error(f'Skill specific shutdown function encountered an '
1223-
f'error: {e}')
1224-
12251219
self.bus.emit(
12261220
Message('detach_skill', {'skill_id': self.skill_id},
12271221
{'skill_id': self.skill_id}))
12281222

1223+
def __del__(self):
1224+
try:
1225+
self.shutdown()
1226+
except Exception as e:
1227+
LOG.error(f"Skill specific shutdown for '{self.skill_id}' encountered an error: {e}")
1228+
try:
1229+
self.default_shutdown()
1230+
except Exception as e:
1231+
LOG.error(f"Default shutdown for skill '{self.skill_id}' encountered an error: {e}")
1232+
12291233
def detach(self):
12301234
"""
12311235
Detach all intents for this skill from the intent_service.

ovos_workshop/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# START_VERSION_BLOCK
22
VERSION_MAJOR = 7
33
VERSION_MINOR = 0
4-
VERSION_BUILD = 4
5-
VERSION_ALPHA = 0
4+
VERSION_BUILD = 5
5+
VERSION_ALPHA = 1
66
# END_VERSION_BLOCK

0 commit comments

Comments
 (0)