[Twisted-Python] adbapi : sqlite3.OperationalError : database is locked

Gabriel Rossetti gabriel.rossetti at arimaz.com
Mon Jun 22 05:06:24 EDT 2009

Hello everyone,

I am using twisted.enterprise.adbapi with sqlite3 database adapter and 
"runInteraction()". I keep on getting "sqlite3.OperationalError : 
database is locked" errors. I understand the problem, multiple threads 
try to access the DB and it being already locked by a thread it raises 
this exception. My question is what is the standard/correct Twisted way 
of dealing with this?

Thank you,

More information about the Twisted-Python mailing list