-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
No issues running CYT short term, but if ran long enough I observe the following happening with various functions it performs.
cursorObj.execute(“SELECT…..)
sqlite3.OperationalError: database is locked
Recent encounter is line 104, sql_fetch_past_5
I wrapped one of the functions with a try/except block and while True it tries to select, if successful it breaks out but if not it sleeps for 1 second. I don’t know if that’s the best approach and even if so I guess I’d have to apply it to every function.
Better suggestions or thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels