The server crashes when the schema is uninitialized during startup.
Note, this even happens if you put self.create_tables() in IncidentStore.__init__. This is because there are multiple Gunicorn threads. The fix for this is unclear at the moment, save just making sure to initialize the schema before starting the server.
The server crashes when the schema is uninitialized during startup.
Note, this even happens if you put
self.create_tables()
inIncidentStore.__init__
. This is because there are multiple Gunicorn threads. The fix for this is unclear at the moment, save just making sure to initialize the schema before starting the server.