Skip to content

Commit

Permalink
fix: Add error handling to clickhouse query
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Jan 18, 2024
1 parent 9f78111 commit 1469e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/smoke-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
for sentry in "${all_sentries[@]}"; do
echo "Checking $table table for $sentry..."
while true; do
data_count=$(docker exec clickhouse-01 clickhouse-client --query "SELECT COUNT(*) FROM default.$table WHERE meta_client_name = '$sentry'")
data_count=$(docker exec clickhouse-01 clickhouse-client --query "SELECT COUNT(*) FROM default.$table WHERE meta_client_name = '$sentry'" || true)
if [[ $data_count -gt 0 ]]; then
echo "$table table has data from $sentry."
break
Expand Down

0 comments on commit 1469e1e

Please sign in to comment.