Skip to content Skip to sidebar Skip to footer

Sqlite3 Context Manager With File Locking In Python 2.7

Is this the good way to do file locking with re-entrance in a context manager under Python 2.7? I just want to be sure the rlock() is going to be effective so I could get a multi-t

Solution 1:

I finally fond in my code a place where I was running a long loop (about 2 minutes) before commiting. I correct this and, as @DB suggested, increase busy timeout to 30 seconds. Problem seem to be resolved. Thanks guys!


Post a Comment for "Sqlite3 Context Manager With File Locking In Python 2.7"