lrf402788946 4 lat temu
rodzic
commit
813f653299
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      app/schedule/creeperxtsread.js
  2. 1 1
      app/service/creeperxtsread.js

+ 1 - 1
app/schedule/creeperxtsread.js

@@ -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 都需要执行

+ 1 - 1
app/service/creeperxtsread.js

@@ -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);