2026-02-27 09:43:05,589 [INFO] Starting invoices sync
2026-02-27 09:43:05,589 [INFO] Sync config: sweep_back_days=5 reconcile_days=5 max_records=100
2026-02-27 09:43:05,627 [INFO] Last invoices updated: 2026-02-27 02:16:26
2026-02-27 09:43:05,628 [INFO] Invoices sweep window start: 2026-02-22 02:16:26
2026-02-27 09:43:06,684 [INFO] Invoice list endpoint OK: /invoice/list
2026-02-27 09:43:07,496 [INFO] Invoice list endpoint OK: /invoice/list
2026-02-27 09:43:07,499 [INFO] Loaded 96 invoices (incremental + reconcile last 5 days).
2026-02-27 09:44:36,976 [INFO] Invoices sync complete.
2026-02-27 09:44:36,980 [WARNING] Failed releasing lock for invoices
Traceback (most recent call last):
File "/home/hec-app/services/sync_invoices.py", line 987, in _run_invoice_sync
with conn.cursor() as cur:
File "/home/hecapp/venv/lib/python3.12/site-packages/mysql/connector/abstracts.py", line 2480, in __exit__
self.close()
File "/home/hecapp/venv/lib/python3.12/site-packages/mysql/connector/cursor_cext.py", line 513, in close
self._connection.handle_unread_result()
File "/home/hecapp/venv/lib/python3.12/site-packages/mysql/connector/connection_cext.py", line 1121, in handle_unread_result
raise InternalError("Unread result found")
mysql.connector.errors.InternalError: Unread result found