From da0db8c6be9c6e84c980a12111b1b1ee2ab8aef0 Mon Sep 17 00:00:00 2001 From: Justin Brooks Date: Wed, 16 Oct 2024 17:18:39 -0400 Subject: [PATCH] simplify --- apps/webservice/src/app/api/healthz/route.ts | 2 -- apps/webservice/src/env.ts | 1 - packages/job-dispatch/src/queue.ts | 2 -- 3 files changed, 5 deletions(-) diff --git a/apps/webservice/src/app/api/healthz/route.ts b/apps/webservice/src/app/api/healthz/route.ts index 6cac3c3f..875a54b6 100644 --- a/apps/webservice/src/app/api/healthz/route.ts +++ b/apps/webservice/src/app/api/healthz/route.ts @@ -2,11 +2,9 @@ import { NextResponse } from "next/server"; import { sql } from "@ctrlplane/db"; import { db } from "@ctrlplane/db/client"; -import { checkHealth } from "@ctrlplane/job-dispatch"; export const GET = async () => { try { - await checkHealth(); await db.execute(sql`SELECT 1`); } catch (error) { console.error(error); diff --git a/apps/webservice/src/env.ts b/apps/webservice/src/env.ts index 67b63890..0865b5b6 100644 --- a/apps/webservice/src/env.ts +++ b/apps/webservice/src/env.ts @@ -24,7 +24,6 @@ export const env = createEnv({ GITHUB_BOT_PRIVATE_KEY: z.string().optional(), GITHUB_WEBHOOK_SECRET: z.string().optional(), BASE_URL: z.string(), - REDIS_URL: z.string(), OTEL_SAMPLER_RATIO: z.number().optional().default(1), }, diff --git a/packages/job-dispatch/src/queue.ts b/packages/job-dispatch/src/queue.ts index 4b4b540a..8d0c9071 100644 --- a/packages/job-dispatch/src/queue.ts +++ b/packages/job-dispatch/src/queue.ts @@ -12,5 +12,3 @@ export const dispatchJobsQueue = new Queue( Channel.DispatchJob, { connection }, ); - -export const checkHealth = () => connection.ping();