diff --git a/server/src/utils/healthcheck.ts b/server/src/utils/healthcheck.ts index df50636f45676..763fce81b4fc0 100644 --- a/server/src/utils/healthcheck.ts +++ b/server/src/utils/healthcheck.ts @@ -3,6 +3,10 @@ const port = Number(process.env.IMMICH_PORT) || 3001; const controller = new AbortController(); const main = async () => { + if (!process.env.IMMICH_WORKERS_INCLUDE?.includes('api')) { + process.exit(); + } + const timeout = setTimeout(() => controller.abort(), 2000); try { const response = await fetch(`http://localhost:${port}/api/server-info/ping`, {