High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(server): only run healthchecks when api worker is running on immich-server (#10204)
Zack Pollardae095baad3a7
diff --git a/server/src/utils/healthcheck.ts b/server/src/utils/healthcheck.tsindex df50636f45..763fce81b4 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`, {