This commit is contained in:
2025-11-18 19:06:14 +08:00
parent a24bd021a9
commit 73a5aac9c8
2 changed files with 3 additions and 3 deletions

11
agent/main.ts Normal file
View File

@@ -0,0 +1,11 @@
import cron from 'node-cron';
import './index.ts'
import { main } from './task.ts';
// 每2个小时执行一次更新任务
cron.schedule('0 */2 * * *', () => {
main()
});
// first run
main()