Skip to content

Feature Request: shutdown hook in BubHookSpecs #194

@emliunix

Description

@emliunix

For usecases like to close plugin held resources, eg. db connections.

So I'm experimenting write my own SQLite backed tape store. And I found bub chat won't exit on Ctrl-D, cause the db connection is still alive.

The AsyncTapeStore interface doesn't have a close or shutdown method. And I think it might be more general to have a shutdown or even async initialize (current init relies on __init__, which is sync) at HookSpec for full lifecycle awareness.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions