sincronizar cambios
This commit is contained in:
@@ -12,11 +12,11 @@ cron.schedule('*/5 * * * * *', () => {
|
||||
}
|
||||
});
|
||||
|
||||
// Schedules the daily employee data synchronization to run at midnight.
|
||||
cron.schedule('0 0 * * *', () => {
|
||||
console.log('[CronWorker] Running daily employee synchronization task...');
|
||||
syncEmpleadosToExternalDB().catch(err => {
|
||||
console.error('[CronWorker] Error during scheduled employee synchronization:', err);
|
||||
});
|
||||
});
|
||||
console.log('[CronWorker] Daily employee synchronization task scheduled for 00:00.');
|
||||
// // Schedules the daily employee data synchronization to run at midnight.
|
||||
// cron.schedule('0 0 * * *', () => {
|
||||
// console.log('[CronWorker] Running daily employee synchronization task...');
|
||||
// syncEmpleadosToExternalDB().catch(err => {
|
||||
// console.error('[CronWorker] Error during scheduled employee synchronization:', err);
|
||||
// });
|
||||
// });
|
||||
// console.log('[CronWorker] Daily employee synchronization task scheduled for 00:00.');
|
||||
|
||||
Reference in New Issue
Block a user