konveyor / kai

Konveyor AI - static code analysis driven migration to new targets via Generative AI
Apache License 2.0
23 stars 28 forks source link

Starting the server without initializing the schema first causes the server to crash #311

Open JonahSussman opened 3 weeks ago

JonahSussman commented 3 weeks ago

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.