Explorar o código

修改定时任务执行

ruifeng_liu %!s(int64=3) %!d(string=hai) anos
pai
achega
016f07d190
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/schedule/patentearly.js

+ 2 - 2
app/schedule/patentearly.js

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