This commit is contained in:
yaoyanwei
2025-08-04 16:25:38 +08:00
parent 8d542ea201
commit 4b2bb35c20
46 changed files with 5128 additions and 0 deletions

21
jobs/jobs.js Normal file
View File

@@ -0,0 +1,21 @@
const schedule = require('node-schedule');
const ExecuteJobs = async() =>
{
//console.log('Run Hourly Jobs.....');
//Add custom hourly jobs here
};
exports.InitJobs = function()
{
schedule.scheduleJob('* 1 * * *', function(){ // this for one hour
ExecuteJobs();
});
//Test run when starting
ExecuteJobs();
}