Skip to content

Tolerate ClickHouse startup connection failures#320

Merged
svenwltr merged 1 commit into
mainfrom
add-clickhouse-batcher
Jun 9, 2026
Merged

Tolerate ClickHouse startup connection failures#320
svenwltr merged 1 commit into
mainfrom
add-clickhouse-batcher

Conversation

@svenwltr

@svenwltr svenwltr commented Jun 9, 2026

Copy link
Copy Markdown
Member

An unreachable ClickHouse at startup currently fails the whole server boot. This makes analytics best-effort: if the connection can't be opened, chutil.Provide logs a warning and supplies a nil *Batcher (skipping the worker loop) instead of returning an error, so the server starts regardless.

🤖 Generated with Claude Code

Provide now logs a warning and supplies a nil *Batcher instead of
returning an error when the connection can't be opened, so an
unreachable ClickHouse never blocks server startup.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@svenwltr svenwltr self-assigned this Jun 9, 2026
@svenwltr svenwltr marked this pull request as ready for review June 9, 2026 14:45
@svenwltr svenwltr requested a review from a team June 9, 2026 14:45
@svenwltr svenwltr merged commit 5f4aa6c into main Jun 9, 2026
1 check passed
@svenwltr svenwltr deleted the add-clickhouse-batcher branch June 9, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants