patx / pickledb

pickleDB is an open source key-value store using Python's json module.
https://patx.github.io/pickledb
BSD 3-Clause "New" or "Revised" License
925 stars 125 forks source link

`Exception calling application: signal only works in main thread` #50

Closed AdamLeyshon closed 5 years ago

AdamLeyshon commented 5 years ago

Originally posted by @Benjamin-Dewey in https://github.com/patx/pickledb/issues/18#issuecomment-444818630_

Please can we get this fork merged back to master?

I've run into this issue when using PickleDB with GUnicorn and Flask because the workers are run as child threads from the worker, so of course, PickleDB can't install its handler.

AdamLeyshon commented 5 years ago

Please ignore me, I've just noticed that load has the sig=True parameter. Changing to false fixes my issue. Sorry for the noise.