feat(MED-87): improve naming
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user