Skip to content

Commit

Permalink
trivial: better ee-api healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
vklimontovich committed Dec 30, 2023
1 parent 67039ed commit 5ba0ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapps/ee-api/pages/api/healthcheck/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getServerLog } from "../../../lib/log";

const healthChecks: Record<string, () => Promise<any>> = {
postgres: async () => {
await pg.query(`SELECT 1 as pgpool_healthcheck`);
await pg.query(`SELECT count(*) from kvstore`);
},
clickhouse: async () => {
await clickhouse.query({ query: `SELECT 1 as chpool_healthcheck`, clickhouse_settings: { wait_end_of_query: 1 } });
Expand Down

1 comment on commit 5ba0ff7

@vercel
Copy link

@vercel vercel bot commented on 5ba0ff7 Dec 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

new-jitsu-ee-api – ./webapps/ee-api

new-jitsu-ee-api-jitsu.vercel.app
onetag-ee-api.vercel.app
new-jitsu-ee-api-git-newjitsu-jitsu.vercel.app
ee.jitsu.dev

Please sign in to comment.