guhongwei 3 years ago
parent
commit
ed0b483b1c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      app/schedule/patentearly.js

+ 3 - 2
app/schedule/patentearly.js

@@ -2,8 +2,9 @@
 module.exports = {
   schedule: {
     // interval: '30s', // 1 分钟间隔
-    cron: '0 0 10 * * *',
-    type: 'all', // 指定所有的 worker 都需要执行
+    // cron: '0 0 10 * * *',
+    cron: '0 10 10 ? * *',
+    type: 'worker', // 指定所有的 worker 都需要执行
   },
   async task(ctx) {
     ctx.service.patent.patentearly.needWarning();