guhongwei 3 năm trước cách đây
mục cha
commit
ed0b483b1c
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  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();