定时任务支持 @once 和 @boot 任务

This commit is contained in:
whyour committed 2025-02-20 02:18:59 +08:00
1 parent 496918131f
commit 8173075b67
11 files changed
+242 -118

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import Container from 'typedi';
import CronService from '../services/cron';
export default async () => {
const cronService = Container.get(CronService);
await cronService.bootTask();
};