INNER CODE UNIT · JavaScript

aliveCron

dearvn/tradovate-trading-bot · agents/notification/index.js:117

  const aliveCron = new CronJob('*/10 * * * *', async () => {
    await executeAlive(logger);
  });
  aliveCron.start();

  // ── Log cleanup every hour ────────────────────────────────────────────────
  const cleanupCron = new CronJob('0 * * * *', async () => {
    await executeLogCleanup(logger);
  });
  cleanupCron.start();

  // Run alive check on startup
  await executeAlive(logger);

  logger.info('NotificationAgent ready');
};

run().catch(err => {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…