update
This commit is contained in:
@@ -47,3 +47,16 @@ schedule.scheduleJob("0 16 * * *", async () => {
|
||||
console.error("Error in 4 PM scheduled job:", error);
|
||||
}
|
||||
});
|
||||
|
||||
// 16시에 실행 - fetch-articles -> fetch-detailAddress -> updateRanging -> sendTelegram
|
||||
schedule.scheduleJob("50 20 * * *", async () => {
|
||||
console.log("Running scheduled jobs at 4 PM");
|
||||
try {
|
||||
await runTsFile("./fetch-articles.ts");
|
||||
await runTsFile("./fetch-detailAddress.ts");
|
||||
// await runTsFile("./updateRanging.ts");
|
||||
// await runTsFile("./sendTelegram.ts");
|
||||
} catch (error) {
|
||||
console.error("Error in 4 PM scheduled job:", error);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user