emoss08 / Trenova

An Open Source AI-driven asset based transportation management system
http://trenova.app
Other
24 stars 6 forks source link

DatabaseWrapper objects created in a thread can only be used in that same thread #78

Closed wolfredstep closed 1 year ago

wolfredstep commented 1 year ago

Issue is occurring when creating a table change alert due to get_column_names opening a new connection on a different thread.

This is causing the following error to be thrown - DatabaseWrapper objects created in a thread can only be used in that same thread. The object with alias 'default' was created in thread id 140201111500544 and this is thread id 140201088387984.

repo-ranger[bot] commented 1 year ago

Congratulations! This issue has been included in the next release! Closing in 15 seconds . . .