|
@@ -9,14 +9,14 @@ class Creeper extends Subscription {
|
|
|
return {
|
|
|
// cron: '0 6 30 * * ?', // 每天晚上23点执行任务
|
|
|
// // cron: '0 20 12 * * ?', // 每天晚上23点执行任务
|
|
|
- interval: '8m', // 1分钟执行一次
|
|
|
+ interval: '1m', // 1分钟执行一次
|
|
|
type: 'worker', // 指定所有的 worker 都需要执行
|
|
|
};
|
|
|
}
|
|
|
|
|
|
// subscribe 是真正定时任务执行时被运行的函数
|
|
|
async subscribe() {
|
|
|
- console.log('服务器集群节点查询');
|
|
|
+ console.log('服务器集群节点读取');
|
|
|
await this.ctx.service.creeperxtsread.qnodes(); // qnodes
|
|
|
}
|
|
|
}
|