Skip to content

SQLite3.OperationalError: database is locked  #13

@alphafox02

Description

@alphafox02

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions