worker mejorado
This commit is contained in:
8
worker/cron-worker.js
Normal file
8
worker/cron-worker.js
Normal file
@@ -0,0 +1,8 @@
|
||||
//cron-worker.js just prints the current date and time every 5 seconds
|
||||
|
||||
import cron from 'node-cron';
|
||||
|
||||
cron.schedule('*/5 * * * * *', () => {
|
||||
console.log(new Date().toLocaleString());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user