Verified Commit 252df926 authored by Martin Petráček's avatar Martin Petráček
Browse files

archive: increase timeout for acquiring lock

parent 81537c83
...@@ -47,7 +47,7 @@ def uci_get_time(opt, default = None): ...@@ -47,7 +47,7 @@ def uci_get_time(opt, default = None):
return ret return ret
archive_path = uci_get('pakon.archive.path') or '/srv/pakon/pakon-archive.db' archive_path = uci_get('pakon.archive.path') or '/srv/pakon/pakon-archive.db'
con = sqlite3.connect(archive_path) con = sqlite3.connect(archive_path, timeout = 300.0)
con.row_factory = sqlite3.Row con.row_factory = sqlite3.Row
def squash(from_details, to_details, up_to, window, size_threshold): def squash(from_details, to_details, up_to, window, size_threshold):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment