fix: write heartbeat file at startup to avoid cold-start unhealthy window
This commit is contained in:
@@ -731,6 +731,7 @@ async function main(): Promise<void> {
|
|||||||
|
|
||||||
validateEnvironment();
|
validateEnvironment();
|
||||||
ensureLogsDir();
|
ensureLogsDir();
|
||||||
|
fs.writeFileSync(path.join(LOGS_DIR, 'scheduler.heartbeat'), new Date().toISOString());
|
||||||
|
|
||||||
// Crash recovery: mark orphaned jobs as failed
|
// Crash recovery: mark orphaned jobs as failed
|
||||||
await recoverFromCrash();
|
await recoverFromCrash();
|
||||||
|
|||||||
Reference in New Issue
Block a user