How to use the default function from node-schedule
Find comprehensive JavaScript node-schedule.default code examples handpicked from public code repositorys.
30 31 32 33 34 35 36 37 38 39
}; const createJob = (wl, cb) => __awaiter(void 0, void 0, void 0, function* () { const { itemID, itemName, nextOn, server } = wl; const nextJobDate = (0, fromUnixTime_1.default)(nextOn); cancelJob(itemID, server); const newJob = node_schedule_1.default.scheduleJob(nextJobDate, function () { return __awaiter(this, void 0, void 0, function* () { const date = new Date(); console.log(`\n${server} [${itemID}:${itemName}] Running... ${date}`); return yield cb(wl);
0
0
0
+ 3 other calls in file
node-schedule.scheduledJobs is the most popular function in node-schedule (381 examples)