cloud: production gaps (worker loop + true cancel, task result columns + migration, DB interface migration, metrics + backup)
This commit is contained in:
1 parent
07ef869267
commit
631580beab
14 files changed
+956
-29
No files matched your search
+2
-1
@@ -17,6 +17,7 @@ Design notes:
|
||||
"""
|
||||
|
||||
import sqlite3
|
||||
from cloud.db import connect as _db_connect
|
||||
import time
|
||||
|
||||
_KINDS = ("file", "readme", "doc", "task", "review")
|
||||
@@ -27,7 +28,7 @@ class KBStore:
|
||||
|
||||
def __init__(self, db_path):
|
||||
self.db_path = db_path
|
||||
self.conn = sqlite3.connect(db_path)
|
||||
self.conn = _db_connect(db_path)
|
||||
self.conn.row_factory = sqlite3.Row
|
||||
self.conn.execute(
|
||||
"""CREATE TABLE IF NOT EXISTS kb_docs(
|
||||
|
||||
Reference in new issue
Block a user