@@ -7,7 +7,7 @@ class Creeper extends Subscription {
// 更改执行时间
static get schedule() {
return {
- cron: '0 38 10 * * ?', // 每天晚上23点执行任务
+ cron: '0 2 11 * * ?', // 每天晚上23点执行任务
// // cron: '0 20 12 * * ?', // 每天晚上23点执行任务
// interval: '60s', // 1分钟执行一次
type: 'worker', // 指定所有的 worker 都需要执行
@@ -94,7 +94,7 @@ class CreeperxtsreadService extends CrudService {
async toMq(data) {
if (this.ctx.mq) {
- const exchange = 'service-count';
+ const exchange = 'service_count';
const routerKey = 'nodes';
const parm = { durable: true };
await this.mq.fanout(exchange, routerKey, JSON.stringify(data), parm);