sincronizar cambios
This commit is contained in:
@@ -14,10 +14,6 @@ jobs:
|
|||||||
- name: Clonar el repo
|
- name: Clonar el repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Agregar remoto de GitHub
|
|
||||||
run: |
|
|
||||||
git remote add github https://josedario87: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@github.com/josedario87/planilla.git
|
|
||||||
|
|
||||||
- name: Forzar limpieza y retry
|
- name: Forzar limpieza y retry
|
||||||
run: |
|
run: |
|
||||||
git remote remove github
|
git remote remove github
|
||||||
@@ -25,8 +21,3 @@ jobs:
|
|||||||
git fetch github
|
git fetch github
|
||||||
git push github +HEAD:main --force
|
git push github +HEAD:main --force
|
||||||
|
|
||||||
|
|
||||||
- name: Forzar subida a GitHub (sobrescribe lo que haya)
|
|
||||||
run: |
|
|
||||||
git fetch github
|
|
||||||
git push github +main
|
|
||||||
|
|||||||
@@ -12,11 +12,11 @@ cron.schedule('*/5 * * * * *', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Schedules the daily employee data synchronization to run at midnight.
|
// // Schedules the daily employee data synchronization to run at midnight.
|
||||||
cron.schedule('0 0 * * *', () => {
|
// cron.schedule('0 0 * * *', () => {
|
||||||
console.log('[CronWorker] Running daily employee synchronization task...');
|
// console.log('[CronWorker] Running daily employee synchronization task...');
|
||||||
syncEmpleadosToExternalDB().catch(err => {
|
// syncEmpleadosToExternalDB().catch(err => {
|
||||||
console.error('[CronWorker] Error during scheduled employee synchronization:', err);
|
// console.error('[CronWorker] Error during scheduled employee synchronization:', err);
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
console.log('[CronWorker] Daily employee synchronization task scheduled for 00:00.');
|
// console.log('[CronWorker] Daily employee synchronization task scheduled for 00:00.');
|
||||||
|
|||||||
Reference in New Issue
Block a user