fix(worker): commit confirmed partition offsets and drain safely

This commit is contained in:
2026-09-19 21:30:33 +03:30
parent 33593609e3
commit 3b59d76f67
5 changed files with 483 additions and 125 deletions

View File

@@ -141,7 +141,8 @@ class ClickHouseService(BaseClickHouseClient):
f"Retrying in {delay:.2f}s...",
extra={"event": "clickhouse_insert_retry"},
)
time.sleep(delay)
if attempt < self.max_attempts:
time.sleep(delay)
logger.error(
f"All {self.max_attempts} ClickHouse insert attempts failed: {last_exception}",