Pierre Buyle
05/21/2025, 3:36 PM_result_store ( a Sqlite3Store) on a ServiceAppFactory ?
Or more generally, why is a BentoML storing data locally in a sqlite database ? Is this needed to run a service, can we disable it ?Chaoyu
05/21/2025, 4:01 PMPierre Buyle
05/21/2025, 6:25 PMsqlite3.OperationalError: database is locked on the CREATE TABLE IF NOT EXISTS result ... query.
I'm guessing this is a race condition when the service is created in multiple processes. As they all init the service, Sqlite3Store instances are created and entered (__aenter__ is called) at the same time. So two processes try to create the DB file and/or the table, and one of them is kicked out by the lock.Chaoyu
05/21/2025, 6:36 PMPierre Buyle
05/21/2025, 6:53 PMbentoml containerize and deploy the produced image on a kubernetes cluster.Pierre Buyle
05/21/2025, 7:01 PMChaoyu
05/22/2025, 7:27 AMJiang
05/22/2025, 7:29 AMFrost Ming
05/22/2025, 7:48 AMon_deployment to avoid race conditionJian Shen Yap
05/22/2025, 9:06 AMmain branch to test it out. We will issue a new release very promptly.
Meanwhile, unfortunately you will have to limit the workers to 1 for now.Frost Ming
05/23/2025, 7:35 AM