fix: backfill sleep 2s per batch to avoid SQLite WAL lock contention
This commit is contained in:
parent
35fcb7cef0
commit
23c7597a40
@ -37,7 +37,7 @@ DB_PATH = os.path.join(os.path.dirname(__file__), "..", "arb.db")
|
||||
BINANCE_FAPI = "https://fapi.binance.com/fapi/v1"
|
||||
HEADERS = {"User-Agent": "Mozilla/5.0 ArbitrageEngine/backfill"}
|
||||
BATCH_SIZE = 1000
|
||||
SLEEP_MS = 200 # 毫秒/请求
|
||||
SLEEP_MS = 2000 # 低优先级:2秒/请求,让出锁给实时服务
|
||||
|
||||
|
||||
# ─── DB helpers ──────────────────────────────────────────────────
|
||||
|
||||
Loading…
Reference in New Issue
Block a user