修复粉尘桥拦开仓,并继续消除模拟盘嵌套握锁导致的 database is locked。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -232,6 +232,12 @@ def notify_options_open(
|
||||
trade_id=trade_id,
|
||||
premium_ccy=ccy,
|
||||
)
|
||||
# 推送前先提交,避免握锁等 webhook 导致模拟盘 database is locked
|
||||
if conn is not None:
|
||||
try:
|
||||
conn.commit()
|
||||
except Exception:
|
||||
pass
|
||||
ok = notify_options_send(cfg, msg)
|
||||
if ok and conn is not None and trade_id is not None:
|
||||
conn.execute(
|
||||
|
||||
Reference in New Issue
Block a user