feat(MED-87): improve naming

This commit is contained in:
2025-08-11 10:43:44 +03:00
parent 63b86c0abb
commit 5264455793
4 changed files with 16 additions and 22 deletions

View File

@@ -1,7 +1,3 @@
/**
* This file is used to register monitoring instrumentation
* for your Next.js application.
*/
import { type Instrumentation } from 'next';
const isEnabledInDev = process.env.ENABLE_LOCAL_JOBS === 'true';
@@ -59,7 +55,6 @@ async function registerJobScheduler() {
}
isRunning = true;
try {
// Ensure env variables are loaded for the handler
try {
const { default: loadEnv } = await import('./app/api/job/handler/load-env');
loadEnv();
@@ -72,7 +67,6 @@ async function registerJobScheduler() {
);
await syncAnalysisResults();
} catch (error) {
// Log and continue; do not crash the process
console.error('Scheduled job syncAnalysisResults failed:', error);
} finally {
isRunning = false;