fix(worker): commit confirmed partition offsets and drain safely
This commit is contained in:
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user