Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 020964d3b3 | |||
| 54620c8d0b | |||
| de8b3f0840 |
@@ -10,7 +10,7 @@ def connect(db_path: str) -> sqlite3.Connection:
|
||||
parent = os.path.dirname(os.path.abspath(db_path))
|
||||
if parent and not os.path.exists(parent):
|
||||
os.makedirs(parent, exist_ok=True)
|
||||
conn = sqlite3.connect(db_path, timeout=30)
|
||||
conn = sqlite3.connect(db_path, timeout=30, check_same_thread=False)
|
||||
conn.row_factory = sqlite3.Row
|
||||
conn.execute("PRAGMA journal_mode=WAL")
|
||||
conn.execute("PRAGMA busy_timeout=30000")
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"EMAIL": "i-hengyan@4paradigm.com",
|
||||
"USER_ID": "83",
|
||||
"CONTRIBUTORS": "i-hengyan",
|
||||
"STRATEGY_ID": "2e5ee92b-ea07-487a-bcfd-02e51be7f6bb",
|
||||
"STRATEGY_ID": "280bc4a7-a460-4778-bf74-89ccd3162bf5",
|
||||
|
||||
"MODELHUB_URL": "https://modelhub.org.cn",
|
||||
"MODELHUB_API_BASE": "https://modelhub.org.cn/api",
|
||||
@@ -15,7 +15,7 @@
|
||||
"HOST": "0.0.0.0",
|
||||
"PORT": 8080,
|
||||
|
||||
"SUBMIT_DRY_RUN": true,
|
||||
"SUBMIT_DRY_RUN": false,
|
||||
"INJECT_STRATEGY_ID": true,
|
||||
"CONTEST_TASK_STRATEGY_FIELD": "strategyId",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user