mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 11:32:13 +01:00
19 lines
540 B
TypeScript
19 lines
540 B
TypeScript
// Combined scheduler initialization
|
|
import { startCsvImportScheduler } from "./scheduler";
|
|
import { startProcessingScheduler } from "./processingScheduler";
|
|
|
|
/**
|
|
* Initialize all schedulers
|
|
* - CSV import scheduler (runs every 15 minutes)
|
|
* - Session processing scheduler (runs every hour)
|
|
*/
|
|
export function initializeSchedulers() {
|
|
// Start the CSV import scheduler
|
|
startCsvImportScheduler();
|
|
|
|
// Start the session processing scheduler
|
|
startProcessingScheduler();
|
|
|
|
console.log("All schedulers initialized successfully");
|
|
}
|