9c3cc38a44947327390a8d1ea0ccb039d27c4464
ACE ODBC reports lock contention ("无法更新;当前被锁定。(-1102)")
as a generic pyodbc.Error (HY000), NOT pyodbc.OperationalError, so the
old except clause never caught it and gave up after the first collision
— making cleanup_lock_retries:3 a no-op for the 氩弧焊/高写入库 -1102 case.
Now catch pyodbc.Error and retry only on lock messages ("被锁定"/"-1102"),
re-raising other errors immediately instead of retrying them 3×.
ProductionDataBaseSync_DataMacro
Access → SQL Server 增量同步(数据宏驱动)。详见 docs/superpowers/specs/2026-07-14-access-datamacro-sync-design.md。
运行
.venv/Scripts/python.exe -m sync.service
配置
编辑 config.yaml(从 config.example.yaml 复制并填入真实凭据)。
Description
Languages
Python
83.8%
TSQL
16.1%
Batchfile
0.1%